摘要: <asp:Button ID="Button1" runat="server" Text="导出PWHT模板" OnClick="btnExport_PWHT_Click" > </asp:Button> protected void btnExport_PWHT_Click(object send 阅读全文
posted @ 2021-06-07 10:40 黑月SAMA 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 这是因为 我们创建model 层的时候 时间字段后面没有加? 加了?证明时间字段是可以为空的。 阅读全文
posted @ 2021-05-24 15:57 黑月SAMA 阅读(1991) 评论(0) 推荐(0) 编辑
摘要: string RowNo = row["行号"].ToString(); RowNo = RowNo.PadLeft(5, '0'); 就是一个数一共就是5位 ,如果RowNo = 20; 那最后就 00020 阅读全文
posted @ 2021-04-06 13:53 黑月SAMA 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 这些步骤完成后就可以像调用方法一样调用接口了。 public string QueryOrderInformation(DataRow rows, string VoucherNo) { string QCNum = rows["QC工号"].ToString(); string type = ro 阅读全文
posted @ 2021-04-01 09:15 黑月SAMA 阅读(381) 评论(0) 推荐(0) 编辑
摘要: public string GetVoucherNo(DataTable dt, string Plant, string Username) { try { string nowDate = DateTime.Now.ToString("yyyyMMdd"); RfcDestination des 阅读全文
posted @ 2021-04-01 09:08 黑月SAMA 阅读(568) 评论(0) 推荐(0) 编辑
摘要: protected void btnExcel_Click(object sender, EventArgs e) { #region IWorkbook book = new HSSFWorkbook(); ISheet sheet1 = book.CreateSheet("Sheet1"); I 阅读全文
posted @ 2021-03-11 15:17 黑月SAMA 阅读(95) 评论(0) 推荐(0) 编辑
摘要: BLL.Room_Scheduled bll = new BLL.Room_Scheduled(); DataSet ds = bll.GetList(where,index); int i = 0; foreach (DataRow item in ds.Tables[0].Rows) { str 阅读全文
posted @ 2021-03-05 18:29 黑月SAMA 阅读(42) 评论(0) 推荐(0) 编辑
摘要: a = a.Substring(0, a.Length - 1); //去除最后一位逗号 b = string.Join(",", a.Split(',').Distinct().ToArray());//去字符串去重 阅读全文
posted @ 2021-03-02 10:27 黑月SAMA 阅读(730) 评论(0) 推荐(0) 编辑
摘要: //string colorNameinput = this.txtcolorName.Text.Trim(); //int colorNamecount = colorNameinput.Length; //if (colorNamecount > 15) //{ // MessageBox.Sh 阅读全文
posted @ 2021-02-25 08:40 黑月SAMA 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 前台 Gridview 中 <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" Width="100%" AllowSorting="True" CellPadding="5" BorderWidth="1px 阅读全文
posted @ 2021-01-26 15:24 黑月SAMA 阅读(158) 评论(0) 推荐(0) 编辑