摘要:
一、开发环境 操作系统:Windows 10 X64 开发环境:VS2015 编程语言:C# .NET版本:.NET Framework 4.0 目标平台:X86 二、创建Windows Service 1、新建一个Windows Service,并将项目名称改为“MyWindowsService” 阅读全文
摘要:
oracle: 每月最新一条: SELECT * FROM (select data_time,meter_id,TT_CREDIT,RE_CREDIT,DATA_STR,min(data_time) over(partition by TO_Char(data_time,'YYYY-MM')) a 阅读全文
摘要:
部门表: 人员表: 存储过程: --OrgID 72 当前的部门IDALTER function [dbo].[getOrgAllName](@OrgID int)returns nvarchar(500)asbegin --调试用--declare @OrgID int--set @OrgID=7 阅读全文
摘要:
后台方法: public ActionResult ExcelUploadSubmit() { HttpPostedFileBase excelFile = Request.Files["excelFile"]; //取到上传域 int count = 0; if (null != excelFil 阅读全文
摘要:
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>表格</titl 阅读全文
摘要:
<asp:TextBox ID="txtHKMonth" runat="server" CssClass="month" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.rep 阅读全文
摘要:
public int InsertTable(string[] str, string date, Guid userid, Guid ownid, Guid moneyid) { int ischeck = 0; int issuccess = 0; decimal money = 0; Guid 阅读全文
摘要:
一:Windows服务、控制台日志方法 public void WriteLog(string text) { string path = AppDomain.CurrentDomain.BaseDirectory; path = System.IO.Path.Combine(path , "Log 阅读全文
摘要:
select top 5 * from Messages where MessageId not in(select top (5*2) MessageId
from Messages order by MessageDate desc) order by MessageDate desc 阅读全文
摘要:
在IE6、IE7、IE8中CSS 如何使DIV层水平居中今天用CSS碰到个很棘手的问题,DIV本身没有定义自己居中的属性,网上很多的方法都是介绍用上级的text-align: center然后嵌套一层DIV来解决问题.可是事实上这样的方法科学吗?经过网络搜索和亲自实验得出以下结论:正确的也是对页面构造没有影响的设置如下:对需要水平居中的DIV层添加以下属性:margin-left: auto;margin-right: auto;PS:图片不能完整显示设置图片的高度、宽度。经过这么一番设置问题似乎解决了,在FF中已经居中了,可是在IE中看竟然还是没有居中!郁闷了一下午,就是找不出问题所在,还特 阅读全文