上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
摘要: 有一个项目要计算出差的天数需要其Field的text change 时建一个规则, 出差日期和返回日期都需要在其Text change的时候建立一个规则其设置出差天数的域值:条件:返回日期及出差日期都不为空的时候(特别注意,需选中如果当满足其规则条件,请勿运行其他规则!)设置域值:number(translate(substring(返回日期, 0, 11), "-", "")) - number(translate(substring(出差日期, 0, 11), "-", "")) + 1如果单纯的时候还是不行, 阅读全文
posted @ 2012-05-21 15:58 gzh4455 阅读(1233) 评论(2) 推荐(0)
摘要: 一般来讲SharePoint的表单有三种方式1. Infopath表单的对应特定的列表(直接在列表中可以自定义列表,只适用特定列表)2. 复杂的表单,如需要重复表,且重复表的数据需用来统计3. Infopath: 新建一个Infopath,然后通过发布,激活,适应多个列表。下面是一个重复表的开发实例,如下图所示:下面是开发这种表单的常用代码:前台代码:View Code <div style="padding-top: 10px;"> <asp:GridView ID="GridView1" AutoGenerateColumns=&q 阅读全文
posted @ 2012-05-17 16:45 gzh4455 阅读(879) 评论(0) 推荐(0)
摘要: File类和FileInfo类都提供了读写文件的方法,Open,OpenRead,OpenWrite方法都返回文件流FileStream对象。 1. C#读写文件需要的头文件using System.IOusing System.Text2. C#读写文件需要的类可以使用FileStream类,StreamReader和StreamWriter类StreamReader sr = new StreamReader(@"C:\My Documents\ReadMe.txt"); 读取ReadMe.txt文件StreamReader sr = new StreamReader( 阅读全文
posted @ 2012-05-16 23:14 gzh4455 阅读(3819) 评论(0) 推荐(0)
摘要: FileInfo file = new FileInfo(@"E:\jj.txt"); StreamReader sr = new StreamReader(@"E:\\dd.txt"); FileStream fs = new FileStream(@"E:\jj.txt", FileMode.Create); StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.GetEncoding("utf-8"))... 阅读全文
posted @ 2012-05-10 19:50 gzh4455 阅读(224) 评论(0) 推荐(0)
摘要: 研究了一下,如何把文件打包成Zip文件。下面是我经历的进程:1. 首先看到了微软本身的打包代码,是通过System.IO.Packaging命令空间来进行打包,你可以点击以上的链接来查看其如何打包!其主要利用PackUriHelper.CreatePartUri来对文件View Code // -------------------------- CreatePackage --------------------------/// <summary>/// Creates a package zip file containing specified/// content and 阅读全文
posted @ 2012-05-10 19:46 gzh4455 阅读(3638) 评论(1) 推荐(0)
摘要: private void DisableChildControl(Control c) { if (c is TextBox) { (c as TextBox).Enabled = false; } if (c is DropDownList) { (c as DropDownList).Enabled = false; } if (c is DateTimeControl) { (c as DateTimeC... 阅读全文
posted @ 2012-05-10 13:23 gzh4455 阅读(242) 评论(0) 推荐(0)
摘要: 环境:SharePoint 2010网站Windows Authentication做法:1) Create a copy of SignOut.aspx in the Layouts folder. Rename it as CustomSignOut.aspx2) Open the custom page in notepad\designer. In the function _spBodyOnLoad() replace windows.close() with windows.location("YourHomePageRelativeUrl");3) Make 阅读全文
posted @ 2012-05-08 21:26 gzh4455 阅读(374) 评论(0) 推荐(0)
摘要: 下面是Query的一个实例 ,用通过查询Title中包含要查询的值,下面是页面的代码View Code <%@ Assembly Name="ClientOMUIActions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4efe8d1641f2f2df" %><%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" 阅读全文
posted @ 2012-05-08 18:44 gzh4455 阅读(450) 评论(0) 推荐(0)
摘要: TextBox 是允许多行的 <asp:TextBox ID="txtEmployeeID" TextMode="MultiLine" Rows="8" runat="server"></asp:TextBox>由于查询的时候,需要把TextBox多行的给分屯出来进行查询,分离方法如下,根据\r来分离 string[] strArr1 = txtEmployeeID.Text.Split('\r'); if (strArr1 != null) { //Response.Wri 阅读全文
posted @ 2012-05-08 15:30 gzh4455 阅读(484) 评论(0) 推荐(0)
摘要: Javascript做法代码演练如下:可以实现转换为中文大写,及英文大写View Code <script src="JS/DecodeNo.js" type="text/javascript"></script> <script type="text/javascript"> function TransCn() { document.getElementById("out").value = ToCn(document.getElementById("Num&quo 阅读全文
posted @ 2012-05-07 18:39 gzh4455 阅读(4241) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页