private void toolStripMenuItem1_Click(object sender, EventArgs e) { UCFetchMaterialImport MateriaImport = new UCFetchMaterialImport(); UCFMaterialReturnAddOrEdit Materialadd = new UCFMaterialReturnAddOrEdit(); MateriaImport.uc = Materialadd; DialogResult result = MateriaImport.ShowDialog(); if (result == DialogResult.OK) { Materialadd.uc = this; Materialadd.wStatus = WindowStatus.Add; Materialadd.strId = MateriaImport.strMaterialId; //领料单据的Id值 Materialadd.strDId = MateriaImport.strDMaterialId; //领料单据的详情Id值 Materialadd.BindSetmentData(); base.addUserControl(Materialadd, "领料退货单-添加", "Materialadd" + Materialadd.strId, this.Tag.ToString(), this.Name); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(strId)) { List <SQLObj> listSql = new List <SQLObj>(); UpdateMaintainInfo(listSql, strId, Convert.ToInt32(DataSources.EnumImportStaus.OCCUPY).ToString()); DBHelper.BatchExeSQLMultiByTrans("更新前置单据状体", listSql); } UCFetchMaterialImport MateriaImport = new UCFetchMaterialImport(); DialogResult result = MateriaImport.ShowDialog(); if (result == DialogResult.OK) { strId = MateriaImport.strMaterialId; strDId = MateriaImport.strDMaterialId; BindSetmentData(); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { try { if (!string.IsNullOrEmpty(strfetchId)) { List <SQLObj> listSql = new List <SQLObj>(); UpdateMaintainInfo(listSql, strfetchId, Convert.ToInt32(DataSources.EnumImportStaus.OPEN).ToString()); DBHelper.BatchExeSQLMultiByTrans("更新前置单据状体", listSql); } UCFetchMaterialImport MateriaImport = new UCFetchMaterialImport(); DialogResult result = MateriaImport.ShowDialog(); if (result == DialogResult.OK) { strfetchId = MateriaImport.strMaterialId; //strDId = MateriaImport.strDMaterialId; BindSetmentData(); } } catch (Exception ex) { HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { try { if (!string.IsNullOrEmpty(strId)) { List<SQLObj> listSql = new List<SQLObj>(); UpdateMaintainInfo(listSql, strId, Convert.ToInt32(DataSources.EnumImportStaus.OCCUPY).ToString()); DBHelper.BatchExeSQLMultiByTrans("更新前置单据状体", listSql); } UCFetchMaterialImport MateriaImport = new UCFetchMaterialImport(); DialogResult result = MateriaImport.ShowDialog(); if (result == DialogResult.OK) { strId = MateriaImport.strMaterialId; //strDId = MateriaImport.strDMaterialId; BindSetmentData(); } } catch (Exception ex) { HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex); } }