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(); }
public StoreInBalance(SessionInfo _session = null, StoreInPlanDialogModel model = null) { InitializeComponent(); this._repoPln = new StoreInPlanRepo(); this._repo = new StoreInRepo(); this.StoreInPlanBln = new List<StoreInPlanDialogModel>(); this.FilterData = model; }
public StoreInPlanDialog(int Status = 2, string TransType = "") { InitializeComponent(); this._repo = new StoreInPlanRepo(); this.HeadContent = new StoreInPlanDialogModel(); this.status = Status; this.Type = TransType; }
//public int POLine; //public decimal POBalance; public POLineDialog(int PONum) { InitializeComponent(); this._repo = new PORepo(); this._repoSpl = new StoreInPlanRepo(); this.paramLine = new POLineModel(); this.PONUM = PONum; //this.POBalance = 0; }
public StoreInPlanDialog(SessionInfo _session, IList<StoreInPlanDialogModel> param = null)//, int Status = 2, string TransType = "") { InitializeComponent(); this._repo = new StoreInPlanRepo(); this.HeadContent = new StoreInPlanDialogModel(); this.list = param; epiSession = _session; //this.status = Status; //this.Type = TransType; }
public StoreInPlanHeadModel() { _repoMaster = new StoreInPlanRepo(); Currencies = new List<CurrencyModel>(); ImportPorts = new List<PortModel>(); ArivePorts = new List<PortModel>(); StoreInPlanDetails = new List<StoreInPlanDetailModel>(); StoreInPlanFileDetails = new List<ExternalFileModel>(); }
public ReceiveArticleDialog(StoreInPlanDetail model, SessionInfo _session, int LineReceive, decimal WeightReceive) { InitializeComponent(); this._repo = new StoreInPlanRepo(); this.ArticleList = new List<StoreInPlanDetail>(); this.lineNum = model; this.numofline = LineReceive; this.WeightRcv = WeightReceive; this.DataFlag = false; epiSession = _session; }
public Progression(string moduleName, decimal tranactionID, SessionInfo session, int possession) { InitializeComponent(); this._repoPlan = new StoreInPlanRepo(); this._repo = new StoreInRepo(); this._session = session; this.Possession = possession; this.TransactionID = tranactionID; timer1.Enabled = false; }
public StoreIn(SessionInfo _session = null, StoreInHead model = null) { InitializeComponent(); this._repoPlan = new StoreInPlanRepo(); this._repo = new StoreInRepo(); this._repoWhse = new WharehouseRepo(); //Initial Session and content this.HeadContent = new StoreInHead(); epiSession = _session; if (model != null) this.HeadContent = model; this.ModelClone = new StoreInHead(); HeadContent.InsertState = false; }
public ImexConfirmCheckList(SessionInfo _session = null, StoreInPlanHeadModel model = null) { InitializeComponent(); this._repo = new StoreInPlanRepo(); epiSession = _session; }
public bool ValidHeader(SessionInfo _session, out string attribute, out string message) { bool result = true; attribute = string.Empty; message = string.Empty; _repoMaster = new StoreInPlanRepo(); if (string.IsNullOrEmpty(InvoiceNum)) { message = "Please fill the required field."; result = false; } else if (_repoMaster.CheckInvoiceExisting(InvoiceNum) && InsertState == true) { message = "This invoice number is duplicate."; result = false; } if (string.IsNullOrEmpty(SupplierCode)) { message = "Please fill the required field."; result = false; } if (string.IsNullOrEmpty(MakerCode)) { message = "Please fill the required field."; result = false; } if (string.IsNullOrEmpty(MillCode)) { message = "Please fill the required field."; result = false; } if (ImportFlag == 0) { if (string.IsNullOrEmpty(Vessel)) { message = "Please fill the required field."; result = false; } if (string.IsNullOrEmpty(ArivePort)) { message = "Please fill the required field."; result = false; } } return result; }