public BarCodeTableToDb(BarCodeInfo barcodes) : base(s_metadata) { SetSqlString(0, barcodes.SKU); SetSqlString(1, barcodes.BarCode); SetSqlString(2, barcodes.Type); SetSqlInt64(3, barcodes.OrderID); SetSqlString(4, barcodes.OrderNumber); SetSqlInt64(5, barcodes.DetailID); SetSqlInt64(6, barcodes.CustomerID == null ? 0 : Convert.ToInt64(barcodes.CustomerID)); SetSqlString(7, barcodes.CustomerName); SetSqlInt64(8, barcodes.WarehouseID); SetSqlString(9, barcodes.WarehouseName); SetSqlString(10, barcodes.Creator); SetSqlDateTime(11, DateTime.Now); SetSqlString(12, barcodes.Str1); SetSqlString(13, barcodes.Str2); SetSqlString(14, barcodes.Str3); SetSqlString(15, barcodes.Str4); SetSqlString(16, barcodes.Str5); SetSqlInt64(17, barcodes.BarCodeNumber); SetSqlString(18, barcodes.PackageNumber); SetSqlInt64(19, barcodes.PackageID); SetSqlInt64(20, barcodes.PackageDetailID); SetSqlInt64(21, barcodes.Count); }
private void dataGridView1_DoubleClick(object sender, EventArgs e) { if (dataGridView1.CurrentRow == null) { return; } int intGoodsID = (int)dataGridView1.CurrentRow.Cells["物品ID"].Value; BarCodeInfo tempInfo = new BarCodeInfo(); tempInfo.BatchNo = dataGridView1.CurrentRow.Cells["批次号"].Value.ToString(); tempInfo.Count = (decimal)dataGridView1.CurrentRow.Cells["数量"].Value; tempInfo.GoodsCode = dataGridView1.CurrentRow.Cells["图号型号"].Value.ToString(); tempInfo.GoodsID = intGoodsID; tempInfo.GoodsName = dataGridView1.CurrentRow.Cells["物品名称"].Value.ToString(); tempInfo.Remark = dataGridView1.CurrentRow.Cells["备注"].Value.ToString(); tempInfo.Spec = dataGridView1.CurrentRow.Cells["规格"].Value.ToString(); Dictionary <string, string> tempDic = new Dictionary <string, string>(); tempDic.Add(cmbWSCode.SelectedValue.ToString(), CE_SubsidiaryOperationType.车间耗用.ToString()); 产品编号 form = new 产品编号(tempInfo, CE_BusinessType.车间业务, m_strBillNo, lbPropose.Text == BasicInfo.LoginName, tempDic); form.ShowDialog(); }
public ActionResult PrintBarCode() { ViewBag.Message = "Print Bar Code"; BarCodeInfo barCodeInfo = new BarCodeInfo(); return(View(barCodeInfo)); }
private void dgv_Main_DoubleClick(object sender, EventArgs e) { if (dgv_Main.CurrentRow == null) { return; } switch (UniversalFunction.GetGoodsType(Convert.ToInt32(dgv_Main.CurrentRow.Cells["GoodsID"].Value), UniversalFunction.GetStorageID(cmbOutStorage.Text))) { case CE_GoodsType.CVT: case CE_GoodsType.TCU: BarCodeInfo tempInfo = new BarCodeInfo(); tempInfo.BatchNo = dgv_Main.CurrentRow.Cells["BatchNo"].Value.ToString(); tempInfo.Count = Convert.ToDecimal(dgv_Main.CurrentRow.Cells["Count"].Value); tempInfo.GoodsCode = dgv_Main.CurrentRow.Cells["GoodsCode"].Value.ToString(); tempInfo.GoodsID = Convert.ToInt32(dgv_Main.CurrentRow.Cells["GoodsID"].Value); tempInfo.GoodsName = dgv_Main.CurrentRow.Cells["GoodsName"].Value.ToString(); tempInfo.Remark = dgv_Main.CurrentRow.Cells["Remark"].Value.ToString(); tempInfo.Spec = dgv_Main.CurrentRow.Cells["Spec"].Value.ToString(); Dictionary <string, string> tempDic = new Dictionary <string, string>(); tempDic.Add(UniversalFunction.GetStorageID(cmbOutStorage.Text), CE_MarketingType.调出.ToString()); tempDic.Add(UniversalFunction.GetStorageID(cmbInStorage.Text), CE_MarketingType.调入.ToString()); 产品编号 formCode = new 产品编号(tempInfo, CE_BusinessType.库房业务, txtSellID.Text, m_strDJZTFlag == "已批准" ? true : false, tempDic); formCode.ShowDialog(); break; case CE_GoodsType.工装: break; case CE_GoodsType.量检具: 量检具编号录入窗体 form = new 量检具编号录入窗体(txtSellID.Text, Convert.ToInt32(dgv_Main.CurrentRow.Cells["GoodsID"].Value), Convert.ToDecimal(dgv_Main.CurrentRow.Cells["Count"].Value), CE_BusinessBillType.库房调出, m_strDJZTFlag == "已批准" ? true : false); form.ShowDialog(); break; case CE_GoodsType.零件: break; case CE_GoodsType.未知物品: break; default: break; } }
private void customDataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == -1 && e.RowIndex >= 0 && customDataGridView1.CurrentRow.Cells["物品ID"].Value != null && customDataGridView1.CurrentRow.Cells["物品ID"].Value.ToString().Length > 0) { BarCodeInfo barCode = new BarCodeInfo(); barCode.BatchNo = customDataGridView1.CurrentRow.Cells["批次号"].Value == null ? "" : customDataGridView1.CurrentRow.Cells["批次号"].Value.ToString(); barCode.Count = customDataGridView1.CurrentRow.Cells["数量"].Value == null ? 0 : Convert.ToDecimal(customDataGridView1.CurrentRow.Cells["数量"].Value); barCode.GoodsID = Convert.ToInt32(customDataGridView1.CurrentRow.Cells["物品ID"].Value); View_F_GoodsPlanCost goodsInfo = UniversalFunction.GetGoodsInfo(barCode.GoodsID); barCode.GoodsName = goodsInfo.物品名称; barCode.GoodsCode = goodsInfo.图号型号; barCode.Spec = goodsInfo.规格; CE_BusinessType tempType = CE_BusinessType.库房业务; Service_Manufacture_WorkShop.IWorkShopBasic serverWSBasic = Service_Manufacture_WorkShop.ServerModuleFactory.GetServerModule <Service_Manufacture_WorkShop.IWorkShopBasic>(); WS_WorkShopCode tempWSCode = serverWSBasic.GetWorkShopCodeInfo(txtApplyingDepartment.Tag.ToString()); Dictionary <string, string> tempDic = new Dictionary <string, string>(); CE_InPutBusinessType inPutType = GlobalObject.GeneralFunction.StringConvertToEnum <CE_InPutBusinessType>(cmbBillType.Text); CE_MarketingType marketType = GlobalObject.EnumOperation.InPutBusinessTypeConvertToMarketingType(inPutType); CE_SubsidiaryOperationType subsdiaryType = GlobalObject.EnumOperation.InPutBusinessTypeConvertToSubsidiaryOperationType(inPutType); tempDic.Add("", marketType.ToString()); if (tempWSCode != null) { tempType = CE_BusinessType.综合业务; tempDic.Add(tempWSCode.WSCode, subsdiaryType.ToString()); } 产品编号 frm = new 产品编号(barCode, tempType, txtBillNo.Text, (lbBillStatus.Text != CE_CommonBillStatus.单据完成.ToString()), tempDic); if (frm.ShowDialog() == DialogResult.OK) { customDataGridView1.Rows[e.RowIndex].Cells["数量"].Value = frm.IntCount; } } }
private void dgv_Main_DoubleClick(object sender, EventArgs e) { if (dgv_Main.CurrentRow == null) { return; } BarCodeInfo tempInfo = new BarCodeInfo(); tempInfo.BatchNo = m_dtMxRK.Rows[dgv_Main.CurrentRow.Index]["BatchNo"].ToString(); tempInfo.Count = Convert.ToDecimal(m_dtMxRK.Rows[dgv_Main.CurrentRow.Index]["Count"]); tempInfo.GoodsCode = m_dtMxRK.Rows[dgv_Main.CurrentRow.Index]["GoodsCode"].ToString(); tempInfo.GoodsID = Convert.ToInt32(m_dtMxRK.Rows[dgv_Main.CurrentRow.Index]["CPID"]); tempInfo.GoodsName = m_dtMxRK.Rows[dgv_Main.CurrentRow.Index]["GoodsName"].ToString(); tempInfo.Remark = m_dtMxRK.Rows[dgv_Main.CurrentRow.Index]["Remark"].ToString(); tempInfo.Spec = m_dtMxRK.Rows[dgv_Main.CurrentRow.Index]["Spec"].ToString(); CE_BusinessType tempType = CE_BusinessType.库房业务; Service_Manufacture_WorkShop.IWorkShopBasic serverWSBasic = Service_Manufacture_WorkShop.ServerModuleFactory.GetServerModule <Service_Manufacture_WorkShop.IWorkShopBasic>(); if (tbsDept.Text.Trim().Length == 0 || tbsDept.Tag == null) { throw new Exception("请选择【出货车间】"); } WS_WorkShopCode tempWSCode = serverWSBasic.GetWorkShopCodeInfo(tbsDept.Tag.ToString()); Dictionary <string, string> tempDic = new Dictionary <string, string>(); tempDic.Add(UniversalFunction.GetStorageID(cmbStorage.Text), CE_MarketingType.入库.ToString()); if (tempWSCode != null) { tempType = CE_BusinessType.综合业务; tempDic.Add(tempWSCode.WSCode, CE_SubsidiaryOperationType.营销入库.ToString()); } 产品编号 form = new 产品编号(tempInfo, tempType, txtSellID.Text, !(m_strDJZTFlag != "已保存" && m_strDJZTFlag != ""), tempDic); form.BlAfterServer = cmbRKFS.Text.Contains("售后返修"); form.ShowDialog(); if (form.IntCount != 0) { dgv_Main.CurrentRow.Cells["Count"].Value = form.IntCount; } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSave_Click(object sender, EventArgs e) { string hiddjsonContent = hdfJsonContent.Value; if (hiddjsonContent != "" && hiddjsonContent.Length > 0) { //拆分条形码 hiddjsonContent = hiddjsonContent.Substring(0, hiddjsonContent.Length - 1); if (Session[this.Status] == null) { List <BarCodeInfo> List = new List <BarCodeInfo>(); BarCodeInfo info = new BarCodeInfo(); info.PID = this.PID; info.BarCodeStr = hiddjsonContent; List.Add(info); Session[this.Status] = List; } else { bool isExsit = false; List <BarCodeInfo> List = Session[this.Status] as List <BarCodeInfo>; if (List != null && List.Count > 0) { foreach (BarCodeInfo q in List) { if (q.PID == this.PID) { q.BarCodeStr = hiddjsonContent; isExsit = true; } } if (!isExsit) //不存在新增 { BarCodeInfo info = new BarCodeInfo(); info.PID = this.PID; info.BarCodeStr = hiddjsonContent; List.Add(info); } Session[this.Status] = List; } } } base.ShowMessage("操作成功!"); bindGrid(hiddjsonContent); }
/// <summary> /// 添加 /// </summary> /// <param name="context"></param> /// <returns></returns> private string Add(HttpContext context) { List <BarCodeInfo> dataList = new List <BarCodeInfo>(); BarCodeInfo model = new BarCodeInfo(); if (!string.IsNullOrEmpty(context.Request["img1"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img1"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img2"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img2"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img3"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img3"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img4"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img4"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img5"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img5"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img6"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img6"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img7"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img7"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img8"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img8"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img9"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img9"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img10"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img10"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img11"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img11"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } if (!string.IsNullOrEmpty(context.Request["img12"])) { model = new BarCodeInfo(); model.ImageUrl = context.Request["img12"]; model.BarCode = GetCodeByFileName(model.ImageUrl); model.websiteOwner = bll.WebsiteOwner; model.InsetData = DateTime.Now.ToString(); dataList.Add(model); } //var model = bll.ConvertRequestToModel<BarCodeInfo>(new BarCodeInfo()); //if (string.IsNullOrEmpty(model.BarCode)) //{ // model.BarCode = GetCodeByFileName(model.ImageUrl); //} //model.websiteOwner = bll.WebsiteOwner; //model.InsetData = DateTime.Now.ToString(); if (bll.AddList(dataList)) { apiResp.status = true; } else { apiResp.msg = "上传失败"; } return(ZentCloud.Common.JSONHelper.ObjectToJson(apiResp)); }
/// <summary> /// 构造函数 /// </summary> /// <param name="barCodeInfo">物品信息</param> /// <param name="businessType">业务状态</param> /// <param name="strDJH">业务编号</param> /// <param name="isEnteringState">是否为录入状态</param> /// <param name="dicInfo">字典信息(库房,业务类型(MarketingType(库房业务),SubsidiaryOperationType(车间业务)))</param> public 产品编号(BarCodeInfo barCodeInfo, CE_BusinessType businessType, string strDJH, bool isEnteringState, Dictionary <string, string> dicInfo) { m_enumBusinessType = businessType; switch (m_enumBusinessType) { case CE_BusinessType.库房业务: foreach (KeyValuePair <string, string> item in dicInfo) { m_dicMarkInfo.Add(item.Key, GeneralFunction.StringConvertToEnum <CE_MarketingType>(item.Value)); } break; case CE_BusinessType.车间业务: foreach (KeyValuePair <string, string> item in dicInfo) { m_dicWorkShopInfo.Add(item.Key, GeneralFunction.StringConvertToEnum <CE_SubsidiaryOperationType>(item.Value)); } break; case CE_BusinessType.综合业务: System.Text.RegularExpressions.Regex rex = new System.Text.RegularExpressions.Regex(@"^\d+$"); if (dicInfo != null) { foreach (KeyValuePair <string, string> item in dicInfo) { if (rex.IsMatch(item.Key)) { m_dicMarkInfo.Add(item.Key, GeneralFunction.StringConvertToEnum <CE_MarketingType>(item.Value)); } else { m_dicWorkShopInfo.Add(item.Key, GeneralFunction.StringConvertToEnum <CE_SubsidiaryOperationType>(item.Value)); } } } break; default: break; } InitializeComponent(); if (!isEnteringState) { ProductCode.ReadOnly = true; btnAdd.Enabled = false; btnDelete.Enabled = false; btnAuditing.Enabled = false; } m_barCodeInfo = barCodeInfo; m_strBillID = strDJH; m_server = AsynSocketFactory.GetSingletonServer(m_currentPort); m_server.Begin(); m_server.OnConnected += new GlobalObject.DelegateCollection.SocketConnectEvent(AsynServer_OnConnected); m_server.OnReceive += new ReceiveEventHandler(AsynServer_OnReceive); }
public void GetBaseInfo() { this.Invoke(new Action(() => { this.lblprocessmsg.Text = "开始从服务器获取数据..."; this.button1.Enabled = false; })); try { var suc = new SoapUnitTOM.SoapUnitClient(); DataTable dt = suc.GetData(1, "BAR_FOR_STOCK", null); BarCodeInfo barCodeinfo; // OleDbConnection acn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Windows.Forms.Application.StartupPath + "\\StoreTake.mdb"); // OleDbCommand amd; // acn.Open(); this.Invoke(new Action(() => { this.lblprocessmsg.Text = "待更新条码数" + dt.Rows.Count.ToString(); this.button1.Enabled = false; })); // barCodeInfoBll.RemoveAll(); for (int i = 0; i < dt.Rows.Count; i++) { barCodeinfo = new BarCodeInfo(); barCodeinfo.ItemCode = dt.Rows[i]["ItemCode"].ToString(); barCodeinfo.ItemName = dt.Rows[i]["ItemName"].ToString(); barCodeinfo.CodeBard = dt.Rows[i]["CodeBard"].ToString(); barCodeinfo.BrandCode = dt.Rows[i]["BrandCode"].ToString(); barCodeinfo.BrandName = dt.Rows[i]["BrandName"].ToString(); this.Invoke(new Action(() => { this.lblprocessmsg.Text = "更新条码" + dt.Rows[i][0].ToString(); this.button1.Enabled = false; })); string _itemcode = dt.Rows[i]["ItemCode"].ToString(); BarCodeInfo result = barCodeInfoBll.GetList().Where(b => b.ItemCode.Equals(_itemcode)).SingleOrDefault(); if (result != null) { barCodeInfoBll.Remove(result.ID); } if (barCodeInfoBll.Add(barCodeinfo)) { this.Invoke(new Action(() => { this.lblprocessmsg.Text = "更新" + dt.Rows[i]["CodeBard"].ToString(); this.button1.Enabled = false; })); } //this.Invoke(new Action(() => //{ // this.richTextBox1.Text = "insert into BarCodeInfo(ItemCode,ItemName,CodeBard,BrandCode,BrandName) values('" + dt.Rows[i]["ItemCode"].ToString() + "','" + dt.Rows[i]["ItemName"].ToString() + "','" + dt.Rows[i]["CodeBard"].ToString() + "','" + dt.Rows[i]["BrandCode"].ToString() + "','" + dt.Rows[i]["BrandName"] + "')"; // this.lblprocessmsg.Text = dt.Rows[i]["ItemCode"].ToString() + "下载插入中..."; // this.button1.Enabled = false; //})); } // acn.Close(); this.Invoke(new Action(() => { this.lblprocessmsg.Text = "同步数据完成!"; this.button1.Enabled = true; })); } catch (Exception ee) { MessageBox.Show(ee.ToString()); this.Invoke(new Action(() => { this.richTextBox1.AppendText(ee.ToString()); this.button1.Enabled = true; })); return; } }
public JsonResult GetAllBarCodeInfo() { var barCodeInfo = new BarCodeInfo(); return(Json(barCodeInfo, JsonRequestBehavior.AllowGet)); }
private void dataGridView1_DoubleClick(object sender, EventArgs e) { if (dataGridView1.CurrentRow == null) { return; } View_S_MaterialReturnedInTheDepot lnqMaterialReturn = m_goodsServer.GetBillView(m_billNo); int intGoodsID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["物品ID"].Value); switch (UniversalFunction.GetGoodsType(intGoodsID, m_strStorage)) { case CE_GoodsType.CVT: case CE_GoodsType.TCU: BarCodeInfo tempInfo = new BarCodeInfo(); tempInfo.BatchNo = dataGridView1.CurrentRow.Cells["批次号"].Value.ToString(); tempInfo.Count = Convert.ToDecimal(dataGridView1.CurrentRow.Cells["退库数"].Value); tempInfo.GoodsCode = dataGridView1.CurrentRow.Cells["图号型号"].Value.ToString(); tempInfo.GoodsID = intGoodsID; tempInfo.GoodsName = dataGridView1.CurrentRow.Cells["物品名称"].Value.ToString(); tempInfo.Remark = dataGridView1.CurrentRow.Cells["备注"].Value.ToString(); tempInfo.Spec = dataGridView1.CurrentRow.Cells["规格"].Value.ToString(); bool blCheck = true; if (m_operateMode == CE_BusinessOperateMode.查看) { blCheck = false; } else { if (lnqMaterialReturn.单据状态 != "等待仓管退库") { blCheck = false; } } IMaterialReturnedInTheDepot serverBill = ServerModuleFactory.GetServerModule <IMaterialReturnedInTheDepot>(); View_S_MaterialReturnedInTheDepot tempLnq = serverBill.GetBillView(m_billNo); CE_BusinessType tempType = CE_BusinessType.库房业务; Service_Manufacture_WorkShop.IWorkShopBasic serverWSBasic = Service_Manufacture_WorkShop.ServerModuleFactory.GetServerModule <Service_Manufacture_WorkShop.IWorkShopBasic>(); WS_WorkShopCode tempWSCode = serverWSBasic.GetPersonnelWorkShop(tempLnq.申请人编码); Dictionary <string, string> tempDic = new Dictionary <string, string>(); tempDic.Add(m_strStorage, CE_MarketingType.领料退库.ToString()); if (tempWSCode != null) { tempType = CE_BusinessType.综合业务; tempDic.Add(tempWSCode.WSCode, CE_SubsidiaryOperationType.领料退库.ToString()); } 产品编号 formCode = new 产品编号(tempInfo, tempType, m_billNo, blCheck, tempDic); if (m_strStorage == "05") { if (dataGridView1.CurrentRow.Cells["返修状态"].Value == null || dataGridView1.CurrentRow.Cells["返修状态"].Value.ToString() == "") { MessageDialog.ShowPromptMessage("请选择产品的返修状态"); return; } else { formCode.BlIsRepaired = (bool)dataGridView1.CurrentRow.Cells["返修状态"].Value; } } formCode.ShowDialog(); break; case CE_GoodsType.工装: 工装编号录入窗体 form = new 工装编号录入窗体(m_billNo, intGoodsID, CE_BusinessBillType.领料退库, lnqMaterialReturn.单据状态 == "等待仓管退库" ? true : false); form.StartPosition = FormStartPosition.CenterScreen; form.ShowDialog(); break; case CE_GoodsType.量检具: 量检具编号录入窗体 formLJY = new 量检具编号录入窗体(m_billNo, intGoodsID, Convert.ToDecimal(dataGridView1.CurrentRow.Cells["退库数"].Value), CE_BusinessBillType.领料退库, m_operateMode == CE_BusinessOperateMode.仓库核实 ? true : false); formLJY.ShowDialog(); break; case CE_GoodsType.零件: break; case CE_GoodsType.未知物品: break; default: break; } }