コード例 #1
0
ファイル: Parlour.cs プロジェクト: rozytwan/POS
        private void metroTouchBilling_Click(object sender, EventArgs e)
        {
            string    tableload = cd.TableLoad();
            DataTable dtload    = bld.GetFirstLoadDynamic();

            if (dtload.Rows.Count > 0)
            {
                string load = dtload.Rows[0]["description"].ToString();
                //TABLE Load
                if (load == "Table Load")
                {
                    if (tableload == "Customer First")
                    {
                        Control ctls = this.Parent;
                        Customer_Management.AllCusomterList vieret = new Customer_Management.AllCusomterList("TableLoad");
                        ctls.Controls.Clear();
                        ctls.Controls.Add(vieret);
                    }
                    else
                    {
                        Billing winfor = new Billing(1.ToString(), null);
                        contentpanel.Controls.Clear();
                        contentpanel.Controls.Add(winfor);
                    }
                }
                else
                {
                    Billing winfor = new Billing(1000.ToString(), null);
                    contentpanel.Controls.Clear();
                    contentpanel.Controls.Add(winfor);
                }
            }
        }
コード例 #2
0
ファイル: Parlour.cs プロジェクト: rozytwan/POS
        private void metroTileItem6_Click(object sender, EventArgs e)
        {
            string takeawayload = cd.TakeAwayLoad();

            if (takeawayload == "Customer First")
            {
                Control ctls = this.Parent;
                Customer_Management.AllCusomterList vieret = new Customer_Management.AllCusomterList("TakeAway");
                ctls.Controls.Clear();
                ctls.Controls.Add(vieret);
            }
            else
            {
                //  TAKE AWAY LOAD
                DataTable dt_id = bltk.getmaxNo();
                if (dt_id.Rows.Count > 0)
                {
                    if (dt_id.Rows[0][0].ToString() == "")
                    {
                        take_away_id = "1001";
                    }
                    else
                    {
                        int getinvoiceno = Convert.ToInt32(dt_id.Rows[0][0].ToString()) + 1;
                        take_away_id = getinvoiceno.ToString();
                        DataTable dtm = bltk.getallfromtable();
                    }
                }
                KOTOrder winfosr = new KOTOrder(take_away_id, "TA");
                contentpanel.Controls.Clear();
                contentpanel.Controls.Add(winfosr);
            }
        }