예제 #1
0
 private void FormImportTrn_Load(object sender, EventArgs e)
 {
     contxt       = new PMModel();
     ledger       = new SupplierLedger();
     ledgerMaster = new RouteQty();
     route        = new AddressBook();
 }
예제 #2
0
 private void FormPartnerLedger_Load(object sender, EventArgs e)
 {
     contxt   = new PMModel();
     partners = new List <AddressBook>();
     partner  = new AddressBook();
     GetPartners();
 }
예제 #3
0
 private void FormExtraEntry_Load(object sender, EventArgs e)
 {
     contxt = new PMModel();
     routes = new List <RouteMaster>();
     route  = new RouteMaster();
     state  = FORMSTATE.NOOP;
     ShowRoutes();
     isFormLoading = false;
 }
예제 #4
0
 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();
 }
예제 #5
0
        private void FormFiscalPeriod_Load(object sender, EventArgs e)
        {
            contxt = new PMModel();
            period = new FiscalPeriod();
            LoadPeriods();
            LoadStatus();
            isNew = false; isEdit = false;

            isFormLoading = false;
        }
예제 #6
0
 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;
 }
예제 #7
0
 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;
 }
예제 #8
0
 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();
 }
예제 #9
0
        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;
        }
예제 #10
0
 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;
 }
예제 #11
0
 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;
 }
예제 #12
0
        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();
            }
        }
예제 #13
0
        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;
        }
예제 #14
0
 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;
 }
예제 #15
0
        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();
        }
예제 #16
0
 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;
 }
예제 #17
0
 private void FormProcessMonth_Load(object sender, EventArgs e)
 {
     contxt    = new PMModel();
     priceList = new PriceList();
 }
예제 #18
0
 private void FormSupplierRate_Load(object sender, EventArgs e)
 {
     contxt        = new PMModel();
     state         = FORMSTATE.NOOP;
     isFormLoading = false;
 }