private void button3_Click_1(object sender, EventArgs e) { if (init) { RepeatedFunctions.SaveAsExcel(MYdgv, Nm, _ColNames); } }
private void TxtCode_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { RepeatedFunctions.TxtCode_Handle(TxtCode, TxtQty, Cart, ItemBarcodes, ref ItemCode, ref Device, Pos_Barcode, BeginChar, DGV, labelTotal); } }
private void TxtQty_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { RepeatedFunctions.TxtQty_Handle(uiBasicSale1.TxtCode, uiBasicSale1.TxtQty, Cart, ref ItemCode, ref Device, DGV, uiBasicSale1.labelTotal); } }
private void Remove_Click(object sender, EventArgs e) { if (DGV.CurrentCell != null && uint.TryParse(DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString(), out uint a)) { RepeatedFunctions.RemoveCart(a, Cart); labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; } }
private void UIMenuA_Load(object sender, EventArgs e) { cmTime.MenuItems.Add("Hide Clock", new EventHandler(Time_visi_Click)); xuiClock1.ContextMenu = cmTime; panel1.ContextMenu = cmTime; RefStore(); RepeatedFunctions.CheckBarcodeReader(); }
private void EditQtyOK_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { RepeatedFunctions.EditCart(Forms.frmEditQty.Code, Forms.frmEditQty.TxtQty.Value, Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; Forms.frmEditQty.Close(); } }
private void BtnRemove_Click_1(object sender, EventArgs e) { if (DGV.CurrentCell != null && uint.TryParse(DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString(), out uint a)) { RepeatedFunctions.RemoveCart(a, Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; } btnEdit.Enabled = false; btnRemove.Enabled = false; }
private void DGV_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (DGV.CurrentCell != null && DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString() != null) { if (uint.TryParse(DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString(), out ItemCode)) { RepeatedFunctions.AddToCart(ref ItemCode, TxtQty.Value, Cart); labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGVcart).ToString("0.00")}"; } } }
private void Save_Click(object sender, EventArgs e) { if (CbAll.Checked) { RepeatedFunctions.SaveAsExcel(DGVin, $"Sales All.csv", new string[] { "Sale ID", "Date", "Total Items", "Total" }); } else { RepeatedFunctions.SaveAsExcel(DGVin, $"Sales {datepick.Value.ToString("yyyyMMdd")}.csv", new string[] { "Sale ID", "Date", "Total Items", "Total" }); } }
private void FrmQuickSale_Load(object sender, EventArgs e) { Settings.LoadCtrlSettings(this); PanelMenu panelMenu = new PanelMenu(panel1, btnhide, 34, panel1.Width); this.panel1.BackColor = RemoteDBs.Settings.commonSettings.Get.MenuColor; this.panel3.BackColor = RemoteDBs.Settings.commonSettings.Get.MenuColor; #region ContextMenu cm.Items.Add("Edit", Properties.Resources.edit_24px, new EventHandler(Edit_Click)); cm.Items.Add("Remove", Properties.Resources.delete_sign_24px, new EventHandler(Remove_Click)); cm.BackColor = Color.LightGray; #endregion labelTotal.Font = new Font(labelTotal.Font.Name.ToString(), labelTotal.Font.Size + 5); labelInNO.Font = new Font(labelInNO.Font.Name.ToString(), labelInNO.Font.Size + 2); RepeatedFunctions.CheckBarcodeReader(); }
private void BtnIssue_Click(object sender, EventArgs e) { RepeatedFunctions.IssueItem(Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; }
private void EditQtyOK_Click(object sender, EventArgs e) { RepeatedFunctions.EditCart(Forms.frmEditQty.Code, Forms.frmEditQty.TxtQty.Value, Cart); labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; Forms.frmEditQty.Close(); }
private void CartItem_Selected(UItem.CartItemSelectedEventArgs args) { RepeatedFunctions.AddToCart(ref args.Item, 1, Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; }
private void Save_Click1(object sender, EventArgs e) { RepeatedFunctions.SaveAsExcel(DGVit, $"Sold Items.csv", new string[] { "Item ID", "Name", "Qty", "Total" }); }
private void Search_Item_Barcode(string text) { DGV.DataSource = RepeatedFunctions.Search_Item_Barcode(text); RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV); }
private void Search_Item_Name(string v) { DGV.DataSource = RepeatedFunctions.Search_Item_Name(v); RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV); }
private void Search_Item(uint o) { DGV.DataSource = RepeatedFunctions.Search_Item(o); RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV); }
private void UIMenu_Load(object sender, EventArgs e) { DrawItems(int.Parse(CBItemCount.Text), (int)TxtPageON.Value); RepeatedFunctions.CheckBarcodeReader(); }
private void RefStore() { DGV.DataSource = RepeatedFunctions.RefStore(); RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV); }