コード例 #1
0
        public void BuildOpType(string frmName)
        {
            DataTable dtOpType = new DataTable();

            dtOpType.Columns.Add("opType");
            dtOpType.Columns.Add("opTypeName");
            dtOpType.Rows.Add(new object[2] {
                MWConstant.OP_MW_DEPTDRAW, "内耗出库"
            });
            dtOpType.Rows.Add(new object[2] {
                MWConstant.OP_MW_REPORTLOSS, "报损出库"
            });
            dtOpType.Rows.Add(new object[2] {
                MWConstant.OP_MW_RETURNSTORE, "物资库退库"
            });
            //dtOpType.Rows.Add(new object[2] { MWConstant.OP_MW_CIRCULATEOUT, "流通出库" });
            if (frmName == "FrmOutStore")
            {
                ifrmOutStore.BindOpType(dtOpType);
            }
            else
            {
                ifrmOutstoreDetail.BindOpType(dtOpType);
            }
        }
コード例 #2
0
        public void BuildOpType(string frmName, string belongSys)
        {
            DataTable dtOpType = new DataTable();

            dtOpType.Columns.Add("opType");
            dtOpType.Columns.Add("opTypeName");
            if (belongSys == DGConstant.OP_DW_SYSTEM)
            {
                dtOpType.Rows.Add(new object[2] {
                    DGConstant.OP_DW_CIRCULATEOUT, "流通出库类型"
                });
                dtOpType.Rows.Add(new object[2] {
                    DGConstant.OP_DW_DEPTDRAW, "内耗出库业务类型"
                });
                dtOpType.Rows.Add(new object[2] {
                    DGConstant.OP_DW_REPORTLOSS, "报损出库业务类型"
                });
                dtOpType.Rows.Add(new object[2] {
                    DGConstant.OP_DW_RETURNSTORE, "退库"
                });
                if (frmName == "FrmOutStoreDW")
                {
                    frmOutStoreDW.BindOpType(dtOpType);
                }
                else
                {
                    frmOutstoreDetailDW.BindOpType(dtOpType);
                }
            }
            else if (belongSys == DGConstant.OP_DS_SYSTEM)
            {
                dtOpType.Rows.Add(new object[2] {
                    DGConstant.OP_DS_DEPTDRAW, "内耗出库"
                });

                //dtOpType.Rows.Add(new object[2] { DGConstant.OP_DS_REPORTLOSS, "报损出库" });
                if (frmName == "FrmOutStoreDS")
                {
                    frmOutStoreDS.BindOpType(dtOpType);
                }
                else
                {
                    frmOutstoreDetailDS.BindOpType(dtOpType);
                }
            }
        }