Exemplo n.º 1
0
        private void btnEditOrder_Click(object sender, EventArgs e)
        {
            Hide();
            FrmTaMain frmTaMain = new FrmTaMain(strChkOrder, usrID, intCusID, checkBusDate, PubComm.MENU_LANG_DEFAULT);

            frmTaMain.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnPanelOrder_Click(object sender, EventArgs e)
        {
            //var btn = (PanelControl)sender;
            var btn = (LabelControl)sender;

            int iNum = Convert.ToInt32(btn.Name.Replace("lblOrderNo", ""));

            //new SystemData().GetTaCheckOrder();
            //var lstCo = CommonData.TaCheckOrder.Where(s => s.CheckCode.Equals(lblOderNo[iNum - 1].Text));
            string            strSqlWhere   = "";
            DynamicParameters dynamicParams = new DynamicParameters();

            strSqlWhere = " CheckCode=@CheckCode AND BusDate=@BusDate";

            dynamicParams.Add("BusDate", strBustDate);
            dynamicParams.Add("CheckCode", lblOderNo[iNum - 1].Text);

            var lstCo = new SQLiteDbHelper().QueryMultiByWhere <TaCheckOrderInfo>("Ta_CheckOrder", strSqlWhere, dynamicParams);

            if (lstCo.Any())
            {
                TaCheckOrderInfo taCheckOrderInfo = lstCo.FirstOrDefault();
                FrmTaMain        frmTaMain        = new FrmTaMain(lblOderNo[iNum - 1].Text, taCheckOrderInfo.StaffID,
                                                                  Convert.ToInt32(taCheckOrderInfo.CustomerID), strBustDate, true);
                this.Hide();
                frmTaMain.ShowDialog();
            }
            else
            {
                FrmTaPendOrder frmTaPendOrder = new FrmTaPendOrder(lblOderNo[iNum - 1].Text, strBustDate, txtTelNum.Text);
                this.Hide();
                frmTaPendOrder.ShowDialog();
            }
        }
Exemplo n.º 3
0
        private void btnAmendOrder_Click(object sender, EventArgs e)
        {
            if (txtSelectedOrders.Text.Equals("1"))
            {
                string strChkOrder = gvTaShowOrder.GetRowCellValue(gvTaShowOrder.FocusedRowHandle, "CheckCode").ToString();
                int    usrID       = Convert.ToInt32(gvTaShowOrder.GetRowCellValue(gvTaShowOrder.FocusedRowHandle, "StaffID").ToString());
                int    intCusID    = Convert.ToInt32(gvTaShowOrder.GetRowCellValue(gvTaShowOrder.FocusedRowHandle, "CustomerID").ToString());

                FrmTaMain frmTaMain = new FrmTaMain(strChkOrder, usrID, intCusID, deDay.Text, PubComm.MENU_LANG_DEFAULT);
                frmTaMain.ShowDialog();
            }
        }
Exemplo n.º 4
0
        private void btnOrder_Click(object sender, EventArgs e)
        {
            FrmTaMain frmTaMain = new FrmTaMain(usrID, PubComm.MENU_LANG_DEFAULT);

            frmTaMain.ShowDialog();
        }