public PosReceipt(dynamic inv, string printer = null, double received = 0.0) { this.invoice = inv; this.printer_name = printer; this.received = received; DepartmentSettings.getData(); }
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(); }
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; }
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(); }
private void Invoice_Frame_Load(object sender, EventArgs e) { setWindowSize(); textBoxCustomer.AutoCompleteCustomSource = this.getCustomerName(); DepartmentSettings.getData(); }
private void MemberShip_Frame_Load(object sender, EventArgs e) { DepartmentSettings.getData(); }