コード例 #1
0
 private void button3_Click_1(object sender, EventArgs e)
 {
     if (init)
     {
         RepeatedFunctions.SaveAsExcel(MYdgv, Nm, _ColNames);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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")}";
     }
 }
コード例 #5
0
ファイル: UIMenuA.cs プロジェクト: Bitblazers-lk/LankaStocks
 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();
 }
コード例 #6
0
 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();
     }
 }
コード例 #7
0
 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;
 }
コード例 #8
0
ファイル: UIMenuA.cs プロジェクト: Bitblazers-lk/LankaStocks
 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")}";
         }
     }
 }
コード例 #9
0
 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" });
     }
 }
コード例 #10
0
        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();
        }
コード例 #11
0
 private void BtnIssue_Click(object sender, EventArgs e)
 {
     RepeatedFunctions.IssueItem(Cart);
     uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}";
 }
コード例 #12
0
 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();
 }
コード例 #13
0
 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")}";
 }
コード例 #14
0
 private void Save_Click1(object sender, EventArgs e)
 {
     RepeatedFunctions.SaveAsExcel(DGVit, $"Sold Items.csv", new string[] { "Item ID", "Name", "Qty", "Total" });
 }
コード例 #15
0
ファイル: UIMenuA.cs プロジェクト: Bitblazers-lk/LankaStocks
 private void Search_Item_Barcode(string text)
 {
     DGV.DataSource = RepeatedFunctions.Search_Item_Barcode(text);
     RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV);
 }
コード例 #16
0
ファイル: UIMenuA.cs プロジェクト: Bitblazers-lk/LankaStocks
 private void Search_Item_Name(string v)
 {
     DGV.DataSource = RepeatedFunctions.Search_Item_Name(v);
     RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV);
 }
コード例 #17
0
ファイル: UIMenuA.cs プロジェクト: Bitblazers-lk/LankaStocks
 private void Search_Item(uint o)
 {
     DGV.DataSource = RepeatedFunctions.Search_Item(o);
     RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV);
 }
コード例 #18
0
 private void UIMenu_Load(object sender, EventArgs e)
 {
     DrawItems(int.Parse(CBItemCount.Text), (int)TxtPageON.Value);
     RepeatedFunctions.CheckBarcodeReader();
 }
コード例 #19
0
ファイル: UIMenuA.cs プロジェクト: Bitblazers-lk/LankaStocks
 private void RefStore()
 {
     DGV.DataSource = RepeatedFunctions.RefStore();
     RepeatedFunctions.MarkWarning(DGV.ColumnCount - 1, DGV);
 }