private void btnCheck_Click(object sender, EventArgs e) { if (m_strDJZTFlag == "已审核") { if (m_findSellIn.ExamineBill(txtSellID.Text, txtRemarkAll.Text, out m_err)) { MessageBox.Show("检验通过!", "提示"); m_billMessageServer.PassFlowMessage(txtSellID.Text, string.Format("【入库方式】:{0} 【库房】:{1} ※※※ 等待【仓管】处理", cmbRKFS.Text, cmbStorage.Text), m_billMessageServer.GetRoleStringForStorage(cmbStorage.Text).ToString(), true); this.Close(); } } else { MessageBox.Show("请重新确认单据状态", "提示"); } }
private void btnCheck_Click(object sender, EventArgs e) { if (m_strDJZTFlag == "已审核") { if (m_findSellIn.ExamineBill(txtSellID.Text, txtRemarkAll.Text, out m_err)) { IProductListServer serverProductList = ServerModule.ServerModuleFactory.GetServerModule <IProductListServer>(); bool flag = false; for (int i = 0; i < dgv_Main.Rows.Count; i++) { if (Convert.ToBoolean(UniversalFunction.GetGoodsAttributeInfo(Convert.ToInt32(dgv_Main.Rows[i].Cells["CPID"].Value), CE_GoodsAttributeName.TCU))) { flag = true; break; } } if (flag) { m_billMessageServer.PassFlowMessage(txtSellID.Text, string.Format("【退货方式】:{0} 【库房】:{1} ※※※ 等待【TCU车间主管】处理", cmbTHFS.Text, cmbStorage.Text), CE_RoleEnum.TCU主管.ToString(), true); } else { m_billMessageServer.PassFlowMessage(txtSellID.Text, string.Format("【退货方式】:{0} 【库房】:{1} ※※※ 等待【下线主管】处理", cmbTHFS.Text, cmbStorage.Text), CE_RoleEnum.线主管.ToString(), true); } MessageBox.Show("检验通过!", "提示"); this.Close(); } } else { MessageBox.Show("请重新确认单据状态", "提示"); } }