private void FormImportTrn_Load(object sender, EventArgs e) { contxt = new PMModel(); ledger = new SupplierLedger(); ledgerMaster = new RouteQty(); route = new AddressBook(); }
private void FormPartnerLedger_Load(object sender, EventArgs e) { contxt = new PMModel(); partners = new List <AddressBook>(); partner = new AddressBook(); GetPartners(); }
private void FormExtraEntry_Load(object sender, EventArgs e) { contxt = new PMModel(); routes = new List <RouteMaster>(); route = new RouteMaster(); state = FORMSTATE.NOOP; ShowRoutes(); isFormLoading = false; }
private void FormProcess_Load(object sender, EventArgs e) { contxt = new PMModel(); sqlcn = new SqlConnection(); sqlcn = (SqlConnection)contxt.Database.Connection; routes = new List <RouteMaster>(); LoadRoutes(); table = new DataTable(); }
private void FormFiscalPeriod_Load(object sender, EventArgs e) { contxt = new PMModel(); period = new FiscalPeriod(); LoadPeriods(); LoadStatus(); isNew = false; isEdit = false; isFormLoading = false; }
private void FormRouteMaster_Load(object sender, EventArgs e) { state = FORMSTATE.NOOP; SetButtons(); isNew = false; isEdit = false; contxt = new PMModel(); LoadRoutes(); route = new RouteMaster(); panelMid.Enabled = false; }
private void FormCompany_Load(object sender, EventArgs e) { contxt = new PMModel(); company = new CompanyMaster(); companies = new List <CompanyMaster>(); GetCompanyList(); state = FORMSTATE.NOOP; SetButtons(); isEdit = false; isNew = false; panelMid.Enabled = false; isFormLoading = false; }
private void formAddressBookType_Load(object sender, EventArgs e) { contxt = new PMModel(); bookType = new AddressBookType(); bookTypes = new List <AddressBookType>(); company = new CompanyMaster(); companies = new List <CompanyMaster>(); state = FORMSTATE.NOOP; SetButtons(); panelMid.Enabled = false; GetAddressBookTypeList(); GetCompanyList(); }
private void FormTC12_Load(object sender, EventArgs e) { contxt = new PMModel(); routes = new List <RouteMaster>(); route = new RouteMaster(); LoadRoutes(); LoadAct(); report = new ReportDocument(); report.Load(Application.StartupPath + "\\" + ReportName); isFormLoading = false; nSupTo.Value = 99999999; }
private void FormProducts_Load(object sender, EventArgs e) { contxt = new PMModel(); factories = new List <FactoryMaster>(); factory = new FactoryMaster(); products = new List <Product>(); product = new Product(); GetFactories(); GetProducts(); isNew = false; isEdit = false; state = FORMSTATE.NOOP; SetButtons(); panelMid.Enabled = false; isFormLoading = false; }
private void FormAddressBook_Load(object sender, EventArgs e) { contxt = new PMModel(); bookType = new AddressBookType(); bookTypes = new List <AddressBookType>(); addresses = new List <AddressBook>(); factories = new List <FactoryMaster>(); address = new AddressBook(); factory = new FactoryMaster(); GetAddressBookTypeList(); GetFactories(); state = FORMSTATE.NOOP; SetButtons(); panelMid.Enabled = false; isFormLoading = false; panelMBot.Visible = false; }
private void FormPrint_Load(object sender, EventArgs e) { contxt = new PMModel(); report = new ReportDocument(); if (PrintState == 1) { report.Load(Application.StartupPath + "\\" + ReportName); panelTop.Visible = false; PrintReport(); } else { ReportType = "BL"; LoadReports(); } }
private void FormFactory_Load(object sender, EventArgs e) { contxt = new PMModel(); company = new CompanyMaster(); companies = new List <CompanyMaster>(); factory = new FactoryMaster(); factories = new List <FactoryMaster>(); GetCompanyList(); GetFactoryList(); ///tbFacName.MaxLength = from meta in contxt.FactoryMasters.Me state = FORMSTATE.NOOP; SetButtons(); isEdit = false; isNew = false; panelMid.Enabled = false; isFormLoading = false; }
private void FormPriceList_Load(object sender, EventArgs e) { contxt = new PMModel(); partners = new List <AddressBook>(); partner = new AddressBook(); products = new List <Product>(); sessionList = new List <SupplierLedger>(); priceList = new PriceList(); priceType = new PriceListType(); Trntype = formMode; GetTrnType(); GetProducts(); ShowPriceList(); state = FORMSTATE.NOOP; SetButtons(); panelMid.Enabled = false; isFormLoading = false; }
private void FormTransaction_Load(object sender, EventArgs e) { contxt = new PMModel(); partners = new List <AddressBook>(); partner = new AddressBook(); products = new List <Product>(); ledger = new SupplierLedger(); sessionList = new List <SupplierLedger>(); GetTrnType(); GetProducts(); state = FORMSTATE.NOOP; SetButtons(); isEdit = false; isNew = false; panelMid.Enabled = false; dtTrnDate.Value = DateTime.Now; GetCurrentMonthTrn(); isFormLoading = false; SetGridProperties(); }
private void FormSupplierMaster_Load(object sender, EventArgs e) { contxt = new PMModel(); bookType = new AddressBookType(); bookTypes = new List <AddressBookType>(); addresses = new List <AddressBook>(); routes = new List <AddressBook>(); factories = new List <FactoryMaster>(); address = new AddressBook(); route = new AddressBook(); factory = new FactoryMaster(); supplier = new SupplierMaster(); //TypeName = "Suppliers"; GetAddressBookTypeList(); GetRoutes(); GetFactories(); state = FORMSTATE.NOOP; SetButtons(); panelMid.Enabled = false; AdjustFields(); LoadPartners(); isFormLoading = false; }
private void FormProcessMonth_Load(object sender, EventArgs e) { contxt = new PMModel(); priceList = new PriceList(); }
private void FormSupplierRate_Load(object sender, EventArgs e) { contxt = new PMModel(); state = FORMSTATE.NOOP; isFormLoading = false; }