예제 #1
0
 public PosReceipt(dynamic inv, string printer = null, double received = 0.0)
 {
     this.invoice      = inv;
     this.printer_name = printer;
     this.received     = received;
     DepartmentSettings.getData();
 }
예제 #2
0
 private void Login_Frame_Load(object sender, EventArgs e)
 {
     DepartmentSettings.getData();
     branch.Text    = DepartmentSettings.branchName;
     branch.Enabled = false;
     userid.Focus();
     runSync();
     //MessageBox.Show("path: " + AppDomain.CurrentDomain.BaseDirectory + "../../");
     //loadDatabaseSettings();
 }
예제 #3
0
        private void TillClosing_Frame_Load(object sender, EventArgs e)
        {
            setTitle("Till Closing Window");
            DepartmentSettings.getData();
            string date = DateTime.Now.ToString("yyyy-MM-dd");

            dateLabel.Text       = date;
            labelCreditSale.Text = "" + catculateCreditSale(date);
            loadSales();
            loadCurrencySettings();
            initial_balance          = getInitialBalance();
            labelInitialBanalce.Text = "" + initial_balance;
        }
예제 #4
0
 private void Connection_frame_Load(object sender, EventArgs e)
 {
     SQLConn.getData();
     DepartmentSettings.getData();
     txtServerHost.Text          = SQLConn.ServerMySQL;
     txtPort.Text                = SQLConn.PortMySQL;
     txtUserName.Text            = SQLConn.UserNameMySQL;
     txtPassword.Text            = SQLConn.PwdMySQL;
     txtDatabase.Text            = SQLConn.DBNameMySQL;
     txtDepartmentId.Text        = DepartmentSettings.DepartmentId;
     txtTillId.Text              = DepartmentSettings.TillId;
     textBoxVatChalan.Text       = DepartmentSettings.vatChalan;
     textBoxVatRegestration.Text = DepartmentSettings.vatRegstration;
     textBoxBranchName.Text      = DepartmentSettings.branchName;
     textBoxAdress.Text          = DepartmentSettings.address;
     branch_logo.Image           = new Bitmap(DepartmentSettings.logo);
     master_till.Checked         = DepartmentSettings.is_master_till();
 }
예제 #5
0
 private void Invoice_Frame_Load(object sender, EventArgs e)
 {
     setWindowSize();
     textBoxCustomer.AutoCompleteCustomSource = this.getCustomerName();
     DepartmentSettings.getData();
 }
예제 #6
0
 private void MemberShip_Frame_Load(object sender, EventArgs e)
 {
     DepartmentSettings.getData();
 }