| | |
| | | MsgHelper.ShowError("编码不能为空!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(row["DepotSectionName"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("名称不能为空!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(row["DepotSectionName"].ToString())) |
| | | //{ |
| | | // MsgHelper.ShowError("名称不能为空!"); |
| | | // return; |
| | | //} |
| | | lst.Add(new MesDepotSections |
| | | { |
| | | Guid = UtilityHelper.ToGuid(row["guid"].ToString()), |
| | |
| | | DepotCode = txt_depotCode.Text, |
| | | DepotName = txt_depotName.Text, |
| | | Description = txt_description.Text, |
| | | Remark5=txt_remark5.TextTxt.Trim(), |
| | | list = lst |
| | | }; |
| | | try |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | gcMain1.DataSource = null;var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | gcMain1.DataSource = null; |
| | | System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder(); |
| | | _sbSqlWhere.Append(" and a.FSubsidiary in"); |
| | | _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere()); |
| | | _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList)); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "org.FNumber asc ,a.depot_code", "asc", |
| | | "", _sbSqlWhere.ToString()); |
| | | var json = JsonConvert.SerializeObject(pgq); |