示例#1
0
        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp"> 应用程序对象 </param>
        /// <param name="objUser"> 当前登录用户对象 </param>
        //public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser)
        //{
        //    LoadByModeForm(objApp, objUser, null);
        //}

        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">当前登录用户对象</param>
        /// <param name="objModule">调用模块</param>
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            //SunEast.App.frmBillOut frmtt = new frmBillOut();

            UI.FrmSTable frmX = null;
            if (objModule == string.Empty || objModule.Trim() == "") //默认为 User
            {
                frmX               = new SunEast.App.frmBillIn();
                frmX.ModuleRtsId   = "3101";
                frmX.ModuleRtsName = "入库单据管理";
            }
            else
            {
                /*
                 *  2101	单位信息管理
                 *  2102	部门信息管理
                 *  2103	用户信息管理
                 *  2104	权限管理
                 *
                 */
                switch (objModule.Trim().ToLower())
                {
                case "3101":    //入库
                    frmX               = new SunEast.App.frmBillIn();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "入库单据管理";
                    ((SunEast.App.frmBillIn)frmX).WTWareType = WareType.wtNone;
                    break;

                case "3201":    //出库单
                    frmX               = new SunEast.App.frmBillOut();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "出库单据管理";
                    ((SunEast.App.frmBillOut)frmX).WTWareType = WareType.wtNone;
                    break;

                case "3107":    //DPS
                    frmX               = new SunEast.App.frmCheckAccept();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "入库验收单管理";
                    ((SunEast.App.frmCheckAccept)frmX).WTWareType = WareType.wtNone;
                    break;
                    //case "3305"://出库单据管理  DPS
                    //    frmX = new SunEast.App.frmpBillOut();
                    //    frmX.ModuleRtsId = objModule.Trim().ToLower();
                    //    frmX.ModuleRtsName = "出库单据管理";
                    //    ((SunEast.App.frmpBillOut)frmX).WTWareType = WareType.wtDPS;
                    //    break;
                }
                frmX.AppInformation  = objApp;
                frmX.UserInformation = objUser;
                frmX.InitFormParameters();
                frmX.ShowDialog();
                frmX.Dispose();
            }
        }
示例#2
0
        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp"> 应用程序对象 </param>
        /// <param name="objUser"> 当前登录用户对象 </param>
        //public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser)
        //{
        //    LoadByModeForm(objApp, objUser, null);
        //}

        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">当前登录用户对象</param>
        /// <param name="objModule">调用模块</param>
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            frmMain frmX = new frmMain();

            frmX.uInfo          = objUser;
            frmX.AppInformation = objApp;
            //frmX.SktClient = objApp.SvrSocket;
            frmX.ShowDialog();
            frmX.Dispose();
        }
示例#3
0
        public static void SelectStkMaterial(WMSAppInfo objApp, WMSUserInfo objUser, DoSelMaterialEvent doSelStkMat)
        {
            frmSelMaterial frmX = new frmSelMaterial();

            frmX.AppInformation  = objApp;
            frmX.UserInformation = objUser;
            frmX.DoSelMatEvent   = doSelStkMat;
            frmX.ShowDialog();
            frmX.Dispose();
        }
示例#4
0
 private void frmInOutRece_Load(object sender, EventArgs e)
 {
     this.LoadBillClass();
     this.objApp  = base.AppInformation;
     this.objUser = base.UserInformation;
     this.BindData();
     this.dgvInOutRece.AutoGenerateColumns = false;
     this.dgvRillInfo.AutoGenerateColumns  = false;
     this.cmbBillType.SelectedIndex        = 0;
     this.RefeashData();
 }
示例#5
0
        public static void SelectMaterialInfo(WMSAppInfo objApp, WMSUserInfo objUser, DoSelMaterialEvent doSelMat)
        {
            frmSelMaterialInfo info = new frmSelMaterialInfo {
                AppInformation  = objApp,
                UserInformation = objUser,
                DoSelMatEvent   = doSelMat
            };

            info.ShowDialog();
            info.Dispose();
        }
示例#6
0
        public static void SelectStkMaterial(WMSAppInfo objApp, WMSUserInfo objUser, DoSelMaterialEvent doSelStkMat)
        {
            frmSelMaterial material = new frmSelMaterial {
                AppInformation  = objApp,
                UserInformation = objUser,
                DoSelMatEvent   = doSelStkMat
            };

            material.ShowDialog();
            material.Dispose();
        }
示例#7
0
        public static void SelectIOStoreBillData(WMSAppInfo objApp, WMSUserInfo objUser, int nBClass, string sBNo, string sMNo, DoSelIOStoreMatBillDataEvent doSelIOStoreMatBill)
        {
            frmSelIOBillMat frmX = new frmSelIOBillMat();

            frmX.AppInformation          = objApp;
            frmX.UserInformation         = objUser;
            frmX.BClass                  = nBClass;
            frmX.txt_cBNo.Text           = sBNo;
            frmX.txt_cName.Text          = sMNo;
            frmX.DoSelIOStoreMatBillData = doSelIOStoreMatBill;
            frmX.ShowDialog();
            frmX.Dispose();
        }
示例#8
0
        public static void SelectIOStoreBillData(WMSAppInfo objApp, WMSUserInfo objUser, int nBClass, string sBNo, string sMNo, DoSelIOStoreMatBillDataEvent doSelIOStoreMatBill)
        {
            frmSelIOBillMat mat = new frmSelIOBillMat {
                AppInformation  = objApp,
                UserInformation = objUser,
                BClass          = nBClass
            };

            mat.txt_cBNo.Text           = sBNo;
            mat.txt_cName.Text          = sMNo;
            mat.DoSelIOStoreMatBillData = doSelIOStoreMatBill;
            mat.ShowDialog();
            mat.Dispose();
        }
示例#9
0
        //public static DataSet GetDataSetbySql(string select)
        //{
        //    DBCommInfo.DBSQLCommandInfo cmdInfo = new DBSQLCommandInfo();//执行命令的对象
        //    cmdInfo.SqlText = select;
        //    cmdInfo.SqlType = SqlCommandType.sctSql;                        //SQL命令类型  SqlCommandType.sctSql  SQL 语句 SqlCommandType.sctProcedure 表存储过程
        //    cmdInfo.PageIndex = 0;                                          //需要分页时的页号
        //    cmdInfo.PageSize = 0;                                           //需要分页时的每页记录条数
        //    cmdInfo.FromSysType = "dotnet";
        //    SunEast.SeDBClient sdcX = new SeDBClient();
        //    string sErr = "";
        //    DataSet ds = sdcX.GetDataSet(cmdInfo, out sErr);
        //    return ds;
        //}

        /// <summary>
        /// 选择客户或供应商方法
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">用户对象</param>
        /// <param name="csType">客户供应商类型</param>
        /// <param name="nIsInner">是否内部单位 -1 全部 0 否 1 是</param>
        /// <param name="nIsFacctory">是否生产厂家 -1 全部 0 否 1 是(仅对供应商而言)</param>
        /// <param name="sCSName">搜索的名称</param>
        /// <param name="doSelCuSpplier">处理选择的事件方法</param>
        public static void SelectCuSupplier(WMSAppInfo objApp, WMSUserInfo objUser, CSType csType, int nIsInner, int nIsFacctory, string sCSName, DoSelCuSupplierEvent doSelCuSpplier)
        {
            frmSelCuSupplier frmX = new frmSelCuSupplier();

            frmX.AppInformation  = objApp;
            frmX.UserInformation = objUser;
            frmX.DoSelCuSupplier = doSelCuSpplier;
            frmX.CuSupplierType  = csType;
            frmX.IsInner         = nIsInner;
            frmX.IsFactory       = nIsFacctory;
            frmX.txt_cName.Text  = sCSName.Trim();
            frmX.ShowDialog();
            frmX.Dispose();
        }
示例#10
0
        public static DataSet GetDataSetbySql(WMSAppInfo objApp, string select)
        {
            DBCommInfo.DBSQLCommandInfo cmdInfo = new DBSQLCommandInfo(); //执行命令的对象
            cmdInfo.SqlText     = select;
            cmdInfo.SqlType     = SqlCommandType.sctSql;                  //SQL命令类型  SqlCommandType.sctSql  SQL 语句 SqlCommandType.sctProcedure 表存储过程
            cmdInfo.PageIndex   = 0;                                      //需要分页时的页号
            cmdInfo.PageSize    = 0;                                      //需要分页时的每页记录条数
            cmdInfo.FromSysType = "dotnet";
            SunEast.SeDBClient sdcX = new SeDBClient();
            string             sErr = "";
            DataSet            ds   = sdcX.GetDataSet(objApp.SvrSocket, cmdInfo, false, out sErr); //sdcX.GetDataSet(cmdInfo, out sErr);

            return(ds);
        }
示例#11
0
        public static bool UserLogin(WMSAppInfo objApp, WMSUserInfo objUser)
        {
            bool    bOK  = false;
            frmMain frmX = new frmMain();

            frmX.uInfo          = objUser;
            frmX.AppInformation = objApp;
            //frmX.SktClient = objApp.SvrSocket;
            frmX.cmbCmpt.Enabled = true;
            frmX.cmbDept.Enabled = true;
            frmX.cmbUser.Enabled = true;
            frmX.ShowDialog();
            bOK = frmX.IsOK;
            frmX.Dispose();
            return(bOK);
        }
示例#12
0
        public static bool UserCheck(WMSAppInfo objApp, WMSUserInfo objUser)
        {
            bool    bOK  = false;
            frmMain frmX = new frmMain();

            frmX.Text           = "用户验证";
            frmX.uInfo          = objUser;
            frmX.AppInformation = objApp;
            //frmX.SktClient = objApp.SvrSocket;
            //frmX.cmbCmpt.SelectedValue = objUser.UnitId;
            //frmX.cmbCmpt.Enabled = false ;
            //frmX.cmbDept.SelectedValue = objUser.DeptId; ;
            //frmX.cmbDept.Enabled = false;
            //frmX.cmbUser.SelectedValue = objUser.UserId;
            //frmX.cmbUser.Enabled = true ;
            frmX.IsUserCheck = true;
            frmX.ShowDialog();
            bOK = frmX.IsOK;
            frmX.Dispose();
            return(bOK);
        }
示例#13
0
        public static string GetCell(WMSAppInfo objApp, WMSUserInfo objUser, int nState)
        {
            string        sResult = "";
            FrmSelectCell frmX    = new FrmSelectCell();

            frmX.AppInformation  = objApp;
            frmX.UserInformation = objUser;
            if (nState < frmX.cmb_nState.Items.Count)
            {
                frmX.cmb_nState.SelectedIndex = nState;
            }
            frmX.ShowDialog();
            if (frmX.BIsResult)
            {
                sResult = frmX.SelResult;
            }
            else
            {
                sResult = "";
            }
            frmX.Dispose();
            return(sResult);
        }
示例#14
0
        public static void GetStkMaterial(WMSAppInfo objApp, WMSUserInfo objUser, out string cBNoIn, out int nItemIn,
                                          out string cMNo, out string cMName, out string cSpec, out string cBatchNo, out double fQty, out string cUnit,
                                          out DateTime dProdDate, out DateTime dBadDate, out bool bIsOK)
        {
            cBNoIn    = "";
            nItemIn   = 0;
            cMNo      = "";
            cMName    = "";
            cSpec     = "";
            cBatchNo  = "";
            fQty      = 0;
            cUnit     = "";
            dProdDate = DateTime.MinValue;
            dBadDate  = DateTime.MinValue;
            bIsOK     = false;
            frmSelStkMaterail frmX = new frmSelStkMaterail();

            frmX.AppInformation  = objApp;
            frmX.UserInformation = objUser;
            frmX.IsSelect        = true;
            frmX.ShowDialog();
            if (frmX.IsResultOK)
            {
                cBNoIn    = frmX.cBNo;
                nItemIn   = frmX.nItem;
                cMNo      = frmX.cMNo;
                cMName    = frmX.cMName;
                cSpec     = frmX.cSpec;
                cBatchNo  = frmX.cBatchNo;
                fQty      = frmX.fQty;
                cUnit     = frmX.cUnit;
                dProdDate = frmX.dProdDate;
                dBadDate  = frmX.dBadDate;
                bIsOK     = true;
            }
            frmX.Dispose();
        }
示例#15
0
        public static string GetCell(WMSAppInfo objApp, WMSUserInfo objUser, int nState)
        {
            string        selResult = "";
            FrmSelectCell cell      = new FrmSelectCell {
                AppInformation  = objApp,
                UserInformation = objUser
            };

            if (nState < cell.cmb_nState.Items.Count)
            {
                cell.cmb_nState.SelectedIndex = nState;
            }
            cell.ShowDialog();
            if (cell.BIsResult)
            {
                selResult = cell.SelResult;
            }
            else
            {
                selResult = "";
            }
            cell.Dispose();
            return(selResult);
        }
示例#16
0
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            FrmSTable table = null;

            if ((objModule == string.Empty) || (objModule.Trim() == ""))
            {
                table = new FrmStockMCheck {
                    ModuleRtsId   = "3401",
                    ModuleRtsName = "库存盘点"
                };
            }
            else
            {
                switch (objModule.Trim().ToLower())
                {
                case "3401":
                    table = new FrmStockMCheck {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "库存盘点"
                    };
                    break;

                case "3402":
                    table = new frmMoving {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "移库"
                    };
                    break;

                case "3403":
                    table = new FrmStockMAjust {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "库存调整"
                    };
                    break;

                case "3408":
                    table = new frmBillRemove {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "调拨单管理"
                    };
                    break;

                case "3409":
                    table = new frmStBadMaterial {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "不良品单管理"
                    };
                    break;

                case "5110":
                    table = new frmRptInOutRece {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "出入库汇总报表"
                    };
                    break;

                case "5111":
                    table = new frmSlackMatCount {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "呆滞物料汇总"
                    };
                    break;

                case "3411":
                    table = new frmMergePallet {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "合盘管理"
                    };
                    break;
                }
                table.AppInformation  = objApp;
                table.UserInformation = objUser;
                table.InitFormParameters();
                table.ShowDialog();
                table.Dispose();
            }
        }
示例#17
0
        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp"> 应用程序对象 </param>
        /// <param name="objUser"> 当前登录用户对象 </param>
        //public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser)
        //{
        //    LoadByModeForm(objApp, objUser, null);
        //}

        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">当前登录用户对象</param>
        /// <param name="objModule">调用模块</param>
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            UI.FrmSTable frmX = null;
            if (objModule == string.Empty || objModule.Trim() == "") //默认为 User
            {
                frmX               = new FrmStockMCheck();
                frmX.ModuleRtsId   = "3401";
                frmX.ModuleRtsName = "库存盘点";
            }
            else
            {
                switch (objModule.Trim().ToLower())
                {
                case "3401":    //单位信息管理
                    frmX               = new FrmStockMCheck();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "库存盘点";
                    break;

                case "3402":    //单位信息管理
                    frmX               = new frmMoving();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "移库";
                    break;

                case "3403":    //单位信息管理
                    frmX               = new FrmStockMAjust();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "库存调整";
                    break;

                case "3408":    //单位信息管理
                    frmX               = new frmBillRemove();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "调拨单管理";
                    break;

                case "3409":    //单位信息管理
                    frmX               = new frmStBadMaterial();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "不良品单管理";
                    break;

                case "5110":    //出入库汇总报表管理
                    frmX               = new frmRptInOutRece();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "出入库汇总报表";
                    break;

                case "5111":    //呆滞物料汇总
                    frmX               = new frmSlackMatCount();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "呆滞物料汇总";
                    break;

                case "3411":    //合盘管理
                    frmX               = new frmMergePallet();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "合盘管理";
                    break;
                }
                frmX.AppInformation  = objApp;
                frmX.UserInformation = objUser;
                frmX.InitFormParameters();
                frmX.ShowDialog();
                frmX.Dispose();
            }
        }
示例#18
0
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            FrmSTable table = null;

            if ((objModule == string.Empty) || (objModule.Trim() == ""))
            {
                table = new frmInEmpty {
                    ModuleRtsId   = "3107",
                    ModuleRtsName = "空托盘入库"
                };
            }
            else
            {
                switch (objModule.Trim().ToLower())
                {
                case "3102":
                    table = new FrmStockMPalletWMSIn {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "入库配盘"
                    };
                    break;

                case "3202":
                    table = new FrmStockMPltWMSOut {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "出库配盘"
                    };
                    break;

                case "3111":
                    table = new FrmStockMExceptionSet {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "指令异常处理"
                    };
                    break;

                case "3104":
                    table = new frmInEmpty {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "空托盘入库"
                    };
                    break;

                case "3204":
                    table = new frmOutEmpty {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "空托盘出库"
                    };
                    break;

                case "3103":
                    table = new frmTask {
                        ModuleRtsId = objModule.Trim().ToLower()
                    };
                    ((frmTask)table).WorkTaskType = TaskType.ttTaskInOnly;
                    table.ModuleRtsName           = "入库任务管理";
                    break;

                case "3203":
                    table = new frmTask {
                        ModuleRtsId = objModule.Trim().ToLower()
                    };
                    ((frmTask)table).WorkTaskType = TaskType.ttTaskOutOnly;
                    table.ModuleRtsName           = "出库任务管理";
                    break;

                case "3405":
                    table = new frmTask {
                        ModuleRtsId = objModule.Trim().ToLower()
                    };
                    ((frmTask)table).WorkTaskType = TaskType.ttTaskAll;
                    table.ModuleRtsName           = "任务管理";
                    break;

                case "3406":
                    table = new frmWareCellState {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "平面仓位图"
                    };
                    break;

                case "3205":
                    table = new frmOutAndSee {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "出库查看"
                    };
                    break;

                case "3404":
                    table = new frmOutAndSee {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "出库查看"
                    };
                    break;

                case "3407":
                    table = new frmTaskCheckOK {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "任务确认"
                    };
                    break;
                }
                table.AppInformation  = objApp;
                table.UserInformation = objUser;
                table.InitFormParameters();
                table.ShowDialog();
                table.Dispose();
            }
        }
示例#19
0
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            FrmSTable table = null;

            if ((objModule == string.Empty) || (objModule.Trim() == ""))
            {
                table = new FrmStockInfo {
                    ModuleRtsId   = "2105",
                    ModuleRtsName = "仓库信息管理"
                };
            }
            else
            {
                switch (objModule.Trim().ToLower())
                {
                case "2105":
                    table = new FrmStockInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "仓库设定"
                    };
                    break;

                case "2106":
                    table = new FrmStockAreaInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "货区设定"
                    };
                    break;

                case "2107":
                    table = new FrmStockPositInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "货位设定"
                    };
                    break;

                case "2108":
                    table = new FrmStockPalletInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "托盘设定"
                    };
                    break;

                case "2109":
                    table = new FrmStockBoxInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "周转箱设定"
                    };
                    break;

                case "2110":
                    table = new FrmStockOrderTypeInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "单据类别"
                    };
                    break;

                case "2111":
                    table = new FrmStockMaterTypeInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "物料类别"
                    };
                    break;

                case "2112":
                    table = new FrmStockMaterInfo {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "物料信息"
                    };
                    break;

                case "2116":
                    table = new FrmUnit {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "计量单位管理"
                    };
                    break;

                case "2117":
                    table = new frmBaseItem {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "基本码表管理"
                    };
                    break;
                }
                table.AppInformation  = objApp;
                table.UserInformation = objUser;
                table.InitFormParameters();
                table.ShowDialog();
                table.Dispose();
            }
        }
示例#20
0
        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp"> 应用程序对象 </param>
        /// <param name="objUser"> 当前登录用户对象 </param>
        //public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser)
        //{
        //    LoadByModeForm(objApp, objUser, null);
        //}

        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">当前登录用户对象</param>
        /// <param name="objModule">调用模块</param>
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            UI.FrmSTable frmX = null;
            if (objModule == string.Empty || objModule.Trim() == "") //默认为 User
            {
                frmX               = new frmCompany();
                frmX.ModuleRtsId   = "2101";
                frmX.ModuleRtsName = "单位信息管理";
            }
            else
            {
                /*
                 *  2101	单位信息管理
                 *  2102	部门信息管理
                 *  2103	用户信息管理
                 *  2104	权限管理
                 *
                 */
                switch (objModule.Trim().ToLower())
                {
                case "2101":    //单位信息管理
                    frmX               = new frmCompany();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "单位信息管理";
                    break;

                case "2102":   //部门信息管理
                    frmX               = new frmDept();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "部门信息管理";
                    break;

                case "2103":    //用户信息管理
                    frmX               = new frmUserInfo();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "用户信息管理";
                    break;

                case "2104":    //权限管理
                    frmX               = new frmUserRight();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "权限管理";
                    break;

                case "2114":    //权限管理
                    frmSupplier.sCondition = " and nType=0 ";
                    frmSupplier.type       = 0;
                    frmX               = new frmSupplier();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "供应商管理";
                    break;

                case "2115":    //权限管理
                    frmSupplier.sCondition = " and nType=1 ";
                    frmSupplier.type       = 1;
                    frmX               = new frmSupplier();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "客户管理";
                    break;
                }
                frmX.AppInformation  = objApp;
                frmX.UserInformation = objUser;
                frmX.InitFormParameters();
                frmX.ShowDialog();
                frmX.Dispose();
            }
        }
示例#21
0
        /// <summary>
        /// 以子窗体方式加载主窗体
        /// </summary>
        /// <param name="objApp"> 应用程序对象 </param>
        /// <param name="objUser"> 当前登录用户对象 </param>
        //public void LoadByChildForm(WMSAppInfo objApp, WMSUserInfo objUser)
        //{
        //    LoadByChildForm(objApp, objUser, null);
        //}

        /// <summary>
        /// 以子窗体方式加载主窗体
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">当前登录用户对象</param>
        /// <param name="objModule">调用模块</param>
        public void LoadByChildForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
        }
示例#22
0
        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp"> 应用程序对象 </param>
        /// <param name="objUser"> 当前登录用户对象 </param>
        //public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser)
        //{
        //    LoadByModeForm(objApp, objUser, null);
        //}

        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">当前登录用户对象</param>
        /// <param name="objModule">调用模块</param>
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            UI.FrmSTable frmX = null;
            if (objModule == string.Empty || objModule.Trim() == "") //默认为 User
            {
                frmX               = new SunEast.App.FrmStockDtl();
                frmX.ModuleRtsId   = "5101";
                frmX.ModuleRtsName = "库存明细报表";
            }
            else
            {
                switch (objModule.Trim().ToLower())
                {
                case "5101":
                    frmX               = new SunEast.App.FrmStockDtl();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "库存明细报表";
                    break;

                case "5102":
                    frmX               = new SunEast.App.FrmStockCount();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "库存统计报表";
                    break;

                case "5106":
                    frmX               = new SunEast.App.FrmSysLog();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "系统日志";
                    break;

                case "5103":
                    frmX               = new SunEast.App.FrmStoreHisList();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "库存流水账";
                    break;

                case "5104":
                    frmX               = new SunEast.App.FrmSafeAlarm();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "安全库存报警";
                    break;

                case "5105":
                    frmX               = new SunEast.App.FrmUnkeepList();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "物料有效期报警";
                    break;

                case "3503":
                    frmX               = new SunEast.App.FrmUnkeepList();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "物料有效期报警";
                    break;

                case "5107":
                    frmX               = new SunEast.App.frmCountWareCell();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "货位统计";
                    break;

                case "5108":
                    frmX               = new SunEast.App.frmCountForIn();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "入库救灾物资统计";
                    break;

                case "5109":
                    frmX               = new SunEast.App.frmCountForOut();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "出库救灾物资统计";
                    break;
                }
                frmX.AppInformation  = objApp;
                frmX.UserInformation = objUser;
                frmX.InitFormParameters();
                frmX.ShowDialog();
                frmX.Dispose();
            }
        }