摘要: function DateDiff() { var start = document.getElementById("TextBox1"); var end = document.getElementById("TextBox2"); var result = document.getElementById("TextBox3"); var arrDate, objDate1, objDate2, intDays; arrDate = start.value.split("-"); objDate1 = new D 阅读全文
posted @ 2011-06-27 10:55 Devil_Nic 阅读(765) 评论(0) 推荐(0) 编辑
摘要: var prm = Sys.WebForms.PageRequestManager.getInstance();prm.add_endRequest(function() { // 这里重新绑定你的事件}); 阅读全文
posted @ 2010-08-03 17:25 Devil_Nic 阅读(363) 评论(0) 推荐(0) 编辑
摘要: private void OutContactLabelPdf(DataTable Data, string filename, string FontPath, float FontSize) { MemoryStream m = new MemoryStream(); Document document = new Document(PageSize.LETTER); document.Set... 阅读全文
posted @ 2010-07-05 17:14 Devil_Nic 阅读(459) 评论(0) 推荐(0) 编辑
摘要: private void OutputContactExcel(string strFileName, DataTable dtOutPut, string strTextType) { StringWriter sw = new StringWriter(); string strColumns = ""; foreach (DataColumn Columns in dtOutPut.Colu... 阅读全文
posted @ 2010-07-05 17:04 Devil_Nic 阅读(134) 评论(0) 推荐(0) 编辑
摘要: private void PrintContact(DataTable Data, string filename, string FontPath, float FontSize) { MemoryStream m = new MemoryStream(); Document document = new Document(); try { HttpContext.Current.Respons... 阅读全文
posted @ 2010-07-05 16:59 Devil_Nic 阅读(263) 评论(0) 推荐(0) 编辑
摘要: protected void btn_import_Click(object sender, EventArgs e) { ReturnValue _result = new ReturnValue(); Transaction trans = new Transaction(); TContact_Source contactsource = new TContact_Source(); lb_... 阅读全文
posted @ 2010-07-05 16:54 Devil_Nic 阅读(906) 评论(0) 推荐(0) 编辑
摘要: var globalname; var data = Array(); var loadflag=false; $(document).ready(function () { data.length = 0; if ($("input[name*='txt_FirstName']").html() != null) { globalname = 'txt_FirstName' if(loadf... 阅读全文
posted @ 2010-06-13 16:30 Devil_Nic 阅读(268) 评论(0) 推荐(0) 编辑
摘要: public static void WriteEntityList(StringBuilder sb ,EntityList elist) { sb.Append("["); bool hasvalue = false; foreach (Entity entity in elist) { WriteEntity(sb, entity); sb.Append(","); hasvalue =... 阅读全文
posted @ 2010-06-13 12:36 Devil_Nic 阅读(921) 评论(0) 推荐(0) 编辑
摘要: <system.web.extensions><scripting><webServices><jsonSerialization maxJsonLength="10240000"></jsonSerialization></webServices></scripting></system.web.exten... 阅读全文
posted @ 2010-06-13 12:29 Devil_Nic 阅读(180) 评论(0) 推荐(0) 编辑
摘要: function setCheckBoxSelect(idPrefix) { var theBox = document.getElementById(idPrefix); var elem = document.getElementsByTagName('input'); if(theBox.checked) { for(i = 0;i< elem.length; i++) { if(el... 阅读全文
posted @ 2010-06-02 09:37 Devil_Nic 阅读(1995) 评论(1) 推荐(0) 编辑