Beispiel #1
0
        public StoreInPlan(SessionInfo _session = null, StoreInPlanHead model = null)
        {
            InitializeComponent();
            this._repo = new StoreInPlanRepo();
            this._repoIn = new StoreInRepo();
            this._repoCurr = new CurrenciesRepo();
            this._repoSupplier = new SupplierRepo();
            this._repoBT = new BussinessTypeRepo();
            this._repoMaker = new MakerRepo();
            this._repoMill = new MillRepo();
            this._repoCmdt = new Commodity();
            this._repoSpec = new SpecRepo();
            this._repoCoating = new CoatingRepo();
            this._repoWhse = new WharehouseRepo();
            this._repoPort = new ImportPortRepo();
            this._repoCust = new CustomerRepo();
            this._repoLookup = new LookupRepo();
            this.SourceStr = "";
            epiSession = _session;

            if (model == null || epiSession == null)
            {
                this.HeadContent = new StoreInPlanHead();
                this.IMEXReviewFlag = false;
            }
            else
            {
                this.HeadContent = model;                
                this.IMEXReviewFlag = true;
            }
            this.ModelClone = new StoreInPlanHead();
            this.POTrans = new POLineModel();
        }
Beispiel #2
0
 public SpecDialog(string pCommodity = "")
 {
     InitializeComponent();
     this._repo = new SpecRepo();
     this.SpecID = "";
     this.SpecName = "";
     this.Commodity = "";
     this.RequireCoating = 0;
     this.paramCommodity = pCommodity;
 }
Beispiel #3
0
        public McssMaster(MCSS model = null, SessionInfo _session = null)
        {
            InitializeComponent();
            this._repo = new McssRepo();
            this._repoCustomer = new CustomerRepo();
            this._repoCoating = new CoatingRepo();
            this._repoSpec = new SpecRepo();
            this._repoCommodity = new Commodity();
            this._repoSupplier = new SupplierRepo();
            this._repoBT = new BussinessTypeRepo();
            this._repoMaker = new MakerRepo();
            this._repoMill = new MillRepo();
            this._repoCatg = new CategoryGroupRepo();
            specialRef = new Dictionary<int, string>();

            #region Dashboard
            if (model == null)
            {
                this.McssContent = new MCSS();
                this.ModelClone = new MCSS();
                this.Initail = new InitialModel();
            }
            else
            {
                this.McssContent = model;
                ModelClone = (MCSS)model.Clone();
            }
            epiSession = _session;
            #endregion

            #region Direct form
            //epiSession = new SessionInfo();
            //if (epiSession.SessionID == null)
            //{
            //    Login frm = new Login();
            //    frm.ShowDialog();
            //}
            //else if (epiSession.SessionID == "x")
            //{
            //    Application.Exit();
            //}
            //else
            //{
            //    this.Text = epiSession.CompanyName;
            //}
            #endregion
        }