private void AddUserForm_Load(object sender, EventArgs e) { DGVUsers.Standardize(); RefrshDGVUsers(); ClearAddOrEditUsersPanel(); AuthDictionary = new Dictionary <string, CheckBox>() { { "ALL", cbx_All }, { "CHANGEQTY", cbx_ChangeQuantity }, { "DISCOUNT", cbx_discount }, { "MEMBERTRANS", cbx_membertrans }, { "NONVATTRANS", cbx_nonvattrans }, { "OPENDRAWER", cbx_opendrawer }, { "OPENITEM", cbx_Openitem }, { "PICKUPCASH", cbx_pickupcash }, { "REFUNDITEM", cbx_Refunditem }, { "REMOVEITEM", cbx_Removeitem }, { "REPRINTOR", cbx_reprintor }, { "SENIORTRANS", cbx_seniortrans }, { "VOIDTRANS", cbx_voidtrans }, { "WSALETRANS", cbx_wholesale }, { "XREAD", cbx_xread }, { "ZREAD", cbx_zread }, { "MODIFYUSER", cbx_modifyuser } }; fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); fncFilter.set_theme_color(this); fncFilter.set_dgv_controls(DGVUsers); }
private void frmProductAdjust_Load(object sender, EventArgs e) { lblProductName.Text = this.productname; lblOrigPrice_d.Text = this.new_price.ToString("N2"); if (new_adjust != 0) { txtAdjustTo.Enabled = true; txtDiscount.Enabled = false; txtAdjustTo.Text = (this.new_price + this.new_adjust).ToString("N2"); txtAdjustTo.SelectAll(); } else if (new_discount != 0) { txtAdjustTo.Enabled = false; txtDiscount.Enabled = true; txtDiscount.Focus(); txtDiscount.Text = (this.new_discount * 100).ToString(); txtDiscount.SelectAll(); } else { txtAdjustTo.Enabled = true; this.txtAdjustTo.Focus(); } refresh_new_price(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); txtAdjustTo.AsUnsigned2DecimalTextBox(); txtDiscount.AsUnsigned2DecimalTextBox(); }
public void frmPayment_Load(object sender, EventArgs e) { decimal cash_d = this.paymentdata.get_cash(); decimal points_d = this.paymentdata.get_points(); this.txtCashRcv_d.Text = cash_d.ToString("N2"); this.lblCreditCard_d.Text = this.paymentdata.get_creditamount().ToString("N2"); this.lblDebitCard_d.Text = this.paymentdata.get_debitamount().ToString("N2"); this.lblGiftCheque_d.Text = (Convert.ToDecimal(this.paymentdata.get_giftchequenewamount())).ToString("N2"); this.txtPointUsed_d.Text = points_d.ToString("N2"); this.lblCustomAmt_d.Text = this.paymentdata.get_custompaymentamount().ToString("N2"); if (!this.hasMember || (this.totalpoints <= 0 && this.totalamtdue > 0)) { this.lblPointUsed.Visible = false; this.txtPointUsed_d.Visible = false; this.lblremainingpts.Visible = false; this.lblremainingpts_d.Visible = false; } refresh_total_amount(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); fncFilter.set_theme_color(this); cls_globalfunc.formaddkbkpevent(this); }
private void frmMember_Load(object sender, EventArgs e) { bool result = false; frmLoad loadForm = new frmLoad("Checking Connection.", "Loading Screen"); loadForm.BackgroundWorker.DoWork += (sender1, e1) => { result = mySQLFunc.check_connection_main(); }; loadForm.ShowDialog(); if (!result) { fncFilter.alert("Member feature is Offline."); Close(); return; } ClearControlsData(); if (member.getSyncId() != 0) { this.txtCardID.Text = this.member.getcardid(); this.lblName.Text = this.member.getfullname() + "\n" + this.member.getmobile() + "\n" + this.member.getbirhtdate(); this.lblMemberType.Text = this.member.get_memberrate_name(); this.lblPoints.Text = this.member.getPreviousPoints().ToString("N2"); } else { btnRemove.Visible = false; } fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); tempMember = member; }
private void UserAuthenticationForm_Load(object sender, EventArgs e) { fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); fncFilter.set_theme_color(this); }
private void frmChange_c_Load(object sender, EventArgs e) { this.lblChange_d.Text = this.changeamount; fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmLogIn_Load(object sender, EventArgs e) { txtUsername.Focus(); txtUsername.SelectAll(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmSearchCustomer_Load(object sender, EventArgs e) { dgvCustomer.Standardize(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); fncFilter.set_theme_color(this); fncFilter.set_dgv_controls(dgvCustomer); }
private void frmOpenItem_Load(object sender, EventArgs e) { fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); txtPrice.AsUnsigned2DecimalTextBox(); txtQty.AsSigned2DecimalTextBox(); txtMemo.Focus(); }
private void frmError_Load(object sender, EventArgs e) { this.lblError.Text = this.errormessage; LogsHelper.Print("ERROR MESSAGE: " + this.errormessage); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmPOSMainExt_Load(object sender, EventArgs e) { fncfullscreen = new fncFullScreen(this); fncfullscreen.FullScreen(false, false); fncFilter.set_theme_color(this); this.Location = new Point(Screen.PrimaryScreen.Bounds.Width + 1, 0); lblStoreName.Text = cls_globalvariables.BusinessName_v.ToUpper(); wbAds.Navigate(cls_globalvariables.ads_url_v); tmrUpdateTime.Enabled = true; }
private void frmOldData_Load(object sender, EventArgs e) { string terminalno = cls_globalvariables.terminalno_v; textBox1.Text = terminalno; textBox3.Text = cls_globalvariables.BranchCode; fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmTransactionAdjust_Load(object sender, EventArgs e) { lblOrigPrice_d.Text = this.new_price.ToString("N2"); lblNewPrice_d.Text = this.new_price.ToString("N2"); txtAdjustTo.Focus(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); txtAdjustTo.AsUnsigned2DecimalTextBox(); txtDiscount.AsUnsigned2DecimalTextBox(); }
private void frmWholesale_Load(object sender, EventArgs e) { lblProduct_d.Text = cproduct.getProductName(); lblUnitPrice_d.Text = "0"; txtQty.Text = "1"; txtPrice.Text = "0"; txtQty.Focus(); txtQty.SelectAll(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
public void frmInventory_Load(object sender, EventArgs e) { UserAuthorizationFunction userAuthorizationFunction = new UserAuthorizationFunction(UserAuthorizationList); if (userAuthorizationFunction.IsVerifiedAuthorization("ZREAD")) { this.Close(); return; } fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmProductQuantity_Load(object sender, EventArgs e) { lblProductName.Text = this.productname; lblOldQty_d.Text = this.new_qty.ToString("G29"); txtNewQty_d.Text = this.new_qty.ToString("G29"); txtNewQty_d.SelectAll(); fncFilter.set_theme_color(this); cls_globalfunc.formaddkbkpevent(this); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); txtNewQty_d.AsSigned2DecimalTextBox(); }
private void frmSenior_Load(object sender, EventArgs e) { if (senior.get_idnumber() != "") { txtIDNo.Text = senior.get_idnumber(); txtName.Text = senior.get_fullname(); } else { btnRemove.Visible = false; } txtIDNo.SelectAll(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmRefundmemo_Load(object sender, EventArgs e) { string sSQL = @"SELECT `memo` FROM `saleshead` WHERE `SyncId`= " + salesheadwid + @" LIMIT 1"; DataTable dt = mySQLFunc.getdb(sSQL); if (dt.Rows.Count <= 0) { this.txtMemo_d.Focus(); return; } this.txtMemo_d.Text = dt.Rows[0]["memo"].ToString(); this.txtMemo_d.Focus(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmNonVatInfo_Load(object sender, EventArgs e) { if (this.nonvat.get_idnumber() != "") { this.txtIDNo.Text = this.nonvat.get_idnumber(); this.txtName.Text = this.nonvat.get_fullname(); this.txtAddress.Text = this.nonvat.get_address(); this.txtTelNo.Text = this.nonvat.get_telno(); } else { btnRemove.Visible = false; } this.txtIDNo.SelectAll(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void DialogForm_Load(object sender, EventArgs e) { lblMessage.Text = _Message; switch (_MessageBoxButtons) { case MessageBoxButtons.AbortRetryIgnore: ActivateCommandButton_Click(1, DialogResult.Ignore); ActivateCommandButton_Click(2, DialogResult.Retry); ActivateCommandButton_Click(3, DialogResult.Abort); break; case MessageBoxButtons.OK: ActivateCommandButton_Click(1, DialogResult.OK); break; case MessageBoxButtons.OKCancel: ActivateCommandButton_Click(1, DialogResult.Cancel); ActivateCommandButton_Click(2, DialogResult.OK); break; case MessageBoxButtons.RetryCancel: ActivateCommandButton_Click(1, DialogResult.Cancel); ActivateCommandButton_Click(2, DialogResult.Retry); break; case MessageBoxButtons.YesNo: ActivateCommandButton_Click(1, DialogResult.No); ActivateCommandButton_Click(2, DialogResult.Yes); break; case MessageBoxButtons.YesNoCancel: ActivateCommandButton_Click(1, DialogResult.Cancel); ActivateCommandButton_Click(2, DialogResult.No); ActivateCommandButton_Click(3, DialogResult.Yes); break; } fncFilter.set_theme_color(this); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmLogInMain_Load(object sender, EventArgs e) { try_connection(); RefreshServerDateTime(); txtUsername.Focus(); txtUsername.SelectAll(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); string logInImagePath = Application.StartupPath + "/resources/images/Log In Image.jpg"; if (File.Exists(logInImagePath)) { Bitmap bitmap = new Bitmap(logInImagePath); } fncFilter.set_theme_color(this); }
private void frmVoid_Load(object sender, EventArgs e) { string sSQL = @"SELECT MAX(`ornumber`) as 'ornumber' FROM `saleshead` WHERE `terminalno` = " + cls_globalvariables.terminalno_v + @" AND `branchid` = " + cls_globalvariables.BranchCode + @" AND `status`=1"; DataTable dt = mySQLFunc.getdb(sSQL); if (dt.Rows.Count <= 0) { this.txtORNumber_d.Focus(); return; } this.txtORNumber_d.Text = dt.Rows[0]["ornumber"].ToString(); this.txtORNumber_d.Focus(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); txtORNumber_d.AsInteger(); }
public void frmReprintReceipt_Load(object sender, EventArgs e) { if (!Check_ReprintReceiptPermission(false)) { this.Close(); } string sSQL = @"SELECT MAX(`ornumber`) as `ornumber` FROM `saleshead` WHERE `terminalno` = " + cls_globalvariables.terminalno_v + @" AND `branchid` = " + cls_globalvariables.BranchCode + @" AND `status`=1"; DataTable dt = mySQLFunc.getdb(sSQL); if (dt.Rows.Count <= 0) { this.txtORNumber_d.Focus(); return; } long maxtenderedOR = 0; long.TryParse(dt.Rows[0]["ornumber"].ToString(), out maxtenderedOR); if (maxtenderedOR == this.currenttrans_ornumber) { maxtenderedOR = maxtenderedOR - 1; } this.txtORNumber_d.Text = maxtenderedOR.ToString(); this.txtORNumber_d.Focus(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); txtORNumber_d.AsInteger(); }
private void OtherPayment_Load(object sender, EventArgs e) { dateTimePicker1.MinDate = DateTime.Now; foreach (cls_giftcheque gc in this.gcinfos) { string referenceno = gc.get_referenceno(); DateTime expdate = gc.getexpdate(); decimal amt = gc.getamount(); string memo = gc.get_memo(); this.addgctodgv(referenceno, expdate, amt, memo); lblTotalAmount_d.Text = this.gettotalamount().ToString("N2"); } fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); fncFilter.set_theme_color(this); fncFilter.set_dgv_controls(dgvGCInfo); txtAmount_d.AsUnsigned2DecimalTextBox(); }
private void frmCardInfo_Load(object sender, EventArgs e) { foreach (cls_cardinfo card in this.cardinfos) { string name = card.getname(); string cardno = card.getcardno(); DateTime expdate = card.getexpdate(); decimal amt = card.getamount(); string approvalcode = card.getapprovalcode(); this.addcardtodgv(cardno, amt, name, expdate.Month.ToString("d2"), expdate.Year.ToString(), approvalcode); decimal totalamt = this.gettotalamount(); lblTotalAmount_d.Text = totalamt.ToString("N2"); } fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); fncFilter.set_theme_color(this); fncFilter.set_dgv_controls(dgvCardInfo); txtAmount_d.AsUnsigned2DecimalTextBox(); }
private void frmTransactionDiscountList_Load(object sender, EventArgs e) { this.lblAmtFrom.Text = this.totalAmt.ToString("N2"); foreach (cls_discount disc in this.disclist.get_discount_list()) { if (!disc.get_status()) { continue; } DataGridViewRow row = (DataGridViewRow)this.dgDiscounts.Rows[0].Clone(); row.Cells[0].Value = disc.get_name(); row.Cells[1].Value = disc.get_basis(); row.Cells[2].Value = (disc.get_ismultiple()) ? ((1 - disc.get_value()) * 100).ToString() + "%" : disc.get_value().ToString("N2"); row.Cells[3].Value = disc.get_SyncId(); row.Cells[4].Value = disc.get_status(); row.Cells[5].Value = disc.get_ismultiple(); row.Cells[6].Value = disc.get_value(); this.dgDiscounts.Rows.Add(row); } this.dgDiscounts.AllowUserToAddRows = false; if (this.dgDiscounts.Rows.Count == 0) { this.lblAmtTo.Text = this.totalAmt.ToString("N2"); return; } this.dgDiscounts.CurrentCell = this.dgDiscounts.Rows[this.dgDiscounts.Rows.Count - 1].Cells[1]; this.dgDiscounts.Rows[this.dgDiscounts.Rows.Count - 1].Selected = true; refresh_amounts(); fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmCashDenomination_Load(object sender, EventArgs e) { fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }
private void frmPermissionCode_Load(object sender, EventArgs e) { fncFullScreen fncfullscreen = new fncFullScreen(this); fncfullscreen.ResizeFormsControls(); }