摘要: //来源无网络 private DateTime Result(DateTime dt, int n) { DateTime temp = dt; while (n-- > 0) { temp = temp.AddDays(1); while (temp.DayOfWeek == System.Da 阅读全文
posted @ 2019-11-25 13:29 向往田园 阅读(244) 评论(0) 推荐(0) 编辑
摘要: //调用 onLoadSuccess: compute, function compute() {//计算函数 autoMergeCells("Datagrid_Person_Management", ['JSON_TotalMoney','JSON_OrderNumber', 'JSON_Comp 阅读全文
posted @ 2019-08-26 15:08 向往田园 阅读(3205) 评论(0) 推荐(0) 编辑
摘要: //调用 onLoadSuccess: compute, function compute() {//计算函数 var rows = $('#Datagrid_Person_Management').datagrid('getRows')//获取当前的数据行 var ptotal = 0//计算li 阅读全文
posted @ 2019-08-26 15:05 向往田园 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: #region TCP通讯检验连接状态与发送命令 public static bool GetCallBackData(string comMand, out string message) { string IP =目标IP; int port =目标端口; message = "未连接"; bo 阅读全文
posted @ 2019-06-05 09:11 向往田园 阅读(282) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 通过字符串获取MD5值,返回32位字符串。 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string GetMD5String(string 阅读全文
posted @ 2019-04-10 11:14 向往田园 阅读(106) 评论(0) 推荐(0) 编辑
摘要: //将datatable数据按照规定进行分页 public DataTable GetSelectData(DataTable dt, int PageIndex, int PageSize) { if (PageIndex == 0) return dt;//0页代表每页数据,直接返回 } 阅读全文
posted @ 2018-02-27 15:59 向往田园 阅读(978) 评论(0) 推荐(0) 编辑
摘要: private static string GetApplicationPath() { string path = Application.StartupPath; string folderName = String.Empty; while (folderName.ToLower() != " 阅读全文
posted @ 2017-05-10 10:53 向往田园 阅读(708) 评论(1) 推荐(1) 编辑
摘要: public void SetWindowRegion() { System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.Drawing.Drawing2D.GraphicsPath(); Rectangle rect 阅读全文
posted @ 2017-05-09 13:03 向往田园 阅读(2861) 评论(0) 推荐(0) 编辑
摘要: /// 窗体动画函数 /// </summary> /// <param name="hwnd">指定产生动画的窗口的句柄</param> /// <param name="dwTime">指定动画持续的时间</param> /// <param name="dwFlags">指定动画类型,可以是一 阅读全文
posted @ 2017-05-09 13:02 向往田园 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 清除容器里面某些控件的值 /// </summary> /// <param name="parContainer">容器类控件</param> public void ClearCntrValue(Control parContainer) { for (int 阅读全文
posted @ 2017-05-08 13:36 向往田园 阅读(186) 评论(0) 推荐(0) 编辑