public ListOwnerBLL() { try { if (GlobalVariables.shouldRestoreProcedure) { RestoreProcedure(); } userOrganization = new UserInformation(); listOwnerMaster = new ListOwnerMaster(); this.listOwnerDetailList = new BindingList <ListOwnerDetail>(); GlobalDefaultValue.Apply(this); this.ListOwnerMaster.PropertyChanged += new PropertyChangedEventHandler(ListOwnerMaster_PropertyChanged); this.ListOwnerDetailList.ListChanged += new ListChangedEventHandler(ListOwnerDetailList_ListChanged); } catch (Exception exception) { throw exception; } }
private void ListOwnerGetMaster() { if (this.OwnerID > 0) { ListOwnerDTS.ListOwnerDataTable masterDataTable = this.MasterTableAdapter.GetData(this.OwnerID); if (masterDataTable.Count > 0) { this.ListOwnerMaster.StopTracking(); this.ListOwnerMaster.EntryDate = masterDataTable[0].EntryDate; this.ListOwnerMaster.Description = masterDataTable[0].Description; this.ListOwnerMaster.LogoGenerator = masterDataTable[0].LogoGenerator; this.ListOwnerMaster.Remarks = masterDataTable[0].Remarks; this.ListOwnerMaster.StartTracking(); this.ListOwnerMaster.Reset(); this.UserOrganization.UserID = masterDataTable[0].UserID; this.UserOrganization.UserOrganizationID = masterDataTable[0].UserOrganizationID; } else { throw new System.ArgumentException("Insufficient get data"); } } else { GlobalDefaultValue.Apply(this.ListOwnerMaster); this.ListOwnerMaster.EntryDate = DateTime.Today; this.ListOwnerMaster.Reset(); } }
public ListCategoryDetail(int commonID, double commonValue, string remarks) { GlobalDefaultValue.Apply(this); this.CommonID = commonID; this.CommonValue = commonValue; this.Remarks = remarks; }
public DataMessageDetail(DateTime sendDate, string sendType, string sendMessage, double counterValueBefore, double counterValueAfter, double counterAutonicsBefore, double counterAutonicsAfter, string description, string remarks) { GlobalDefaultValue.Apply(this); this.SendDate = sendDate; this.SendType = sendType; this.SendMessage = sendMessage; this.CounterValueBefore = counterValueBefore; this.CounterValueAfter = counterValueAfter; this.CounterAutonicsBefore = counterAutonicsBefore; this.CounterAutonicsAfter = counterAutonicsAfter; this.Description = description; this.Remarks = remarks; }
public DataMessageMaster(int dataMessageID, int foreignMessageID, int requestedEmployeeID, int dataStatusID, bool verified, DateTime verifiedDate, DateTime productionDate, bool productionDatePrintable, DateTime entryDate, DateTime beginingDate, DateTime endingDate, int logoID, string logoName, string logoLogo, bool logoPrintable, int factoryID, string factoryName, string factoryLogo, bool factoryPrintable, int ownerID, string ownerName, string ownerLogo, bool ownerPrintable, int categoryID, string categoryName, string categoryLogo, bool categoryPrintable, int productID, string productName, string productLogo, bool productPrintable, int coilID, string coilCode, int coilExtension, bool coilPrintable, double counterValue, double counterAutonics, bool counterPrintable, string remarks) { GlobalDefaultValue.Apply(this); this.StopTracking(); this.DataMessageID = dataMessageID; this.ForeignMessageID = foreignMessageID; this.RequestedEmployeeID = requestedEmployeeID; this.DataStatusID = dataStatusID; this.ProductionDate = productionDate; this.ProductionDatePrintable = productionDatePrintable; this.EntryDate = entryDate; this.BeginingDate = beginingDate; this.EndingDate = endingDate; this.Verified = verified; this.VerifiedDate = verifiedDate; this.LogoID = logoID; this.LogoName = logoName; this.LogoLogo = logoLogo; this.LogoPrintable = logoPrintable; this.FactoryID = factoryID; this.FactoryName = factoryName; this.FactoryLogo = factoryLogo; this.FactoryPrintable = factoryPrintable; this.OwnerID = ownerID; this.OwnerName = ownerName; this.OwnerLogo = ownerLogo; this.OwnerPrintable = ownerPrintable; this.CategoryID = categoryID; this.CategoryName = categoryName; this.CategoryLogo = categoryLogo; this.CategoryPrintable = categoryPrintable; this.ProductID = productID; this.ProductName = productName; this.ProductLogo = productLogo; this.ProductPrintable = productPrintable; this.CoilID = coilID; this.CoilCode = coilCode; this.CoilExtension = coilExtension; this.CoilPrintable = coilPrintable; this.CounterValue = counterValue; this.CounterAutonics = counterAutonics; this.CounterPrintable = counterPrintable; this.Remarks = remarks; this.StartTracking(); this.Reset(); }
public ListOwnerMaster() { GlobalDefaultValue.Apply(this); this.EntryDate = DateTime.Now; }