Exemplo n.º 1
0
        private void opennew()
        {
            FrmWaiting frmW = new FrmWaiting();

            frmW.Show();

            //FrmTakeOut2 frm = new FrmTakeOut2(mposC, this);
            FrmTakeOut3 frm = new FrmTakeOut3(mposC, this);

            frm.Show(this);
            frmW.Dispose();
        }
Exemplo n.º 2
0
        private void opennew()
        {
            //vlcControl1.Stop();
            //new LogFile("w FrmToGo2 opennew 111");
            FrmWaiting frmW = new FrmWaiting();

            frmW.Show();
            //new LogFile("w FrmToGo2 FrmWaiting");
            //FrmTakeOut2 frm = new FrmTakeOut2(mposC, this);
            //FrmTakeOut3 frm = new FrmTakeOut3(mposC, this);
            FrmTakeOut4 frm = new FrmTakeOut4(mposC, this);

            frmW.Dispose();
            frm.ShowDialog(this);
            //vlcControl1.Play();
        }
Exemplo n.º 3
0
        private void setGrfOnhand()
        {
            FrmWaiting frmW = new FrmWaiting();

            frmW.Show();

            long   chk = 0;
            String re  = "";

            re = mposC.mposDB.matDB.genStock();
            if (long.TryParse(re, out chk))
            {
                //btnDoc.Enabled = false;
                //MessageBox.Show("gen stock เรียบร้อย", "");
                //mposC.mposDB.matrdDB.voidMatr(txtMatrId.Text, "");
            }

            grfOrder.Clear();
            DataTable dt = new DataTable();

            dt = mposC.mposDB.matDB.selectAll();
            //grfExpn.Rows.Count = dt.Rows.Count + 1;
            grfOrder.Rows.Count = dt.Rows.Count + 1;
            //grfSperm.DataSource = dt;
            grfOrder.Cols.Count = 7;

            grfOrder.Cols[colCode].Caption   = "CODE";
            grfOrder.Cols[colName].Caption   = "ชื่อ";
            grfOrder.Cols[colPrice].Caption  = "Price";
            grfOrder.Cols[colWeight].Caption = "Weight";
            grfOrder.Cols[colOnhand].Caption = "OnHand";
            grfOrder.Cols[colCode].Width     = 120;
            grfOrder.Cols[colName].Width     = 200;
            grfOrder.Cols[colPrice].Width    = 120;
            grfOrder.Cols[colWeight].Width   = 120;
            grfOrder.Cols[colOnhand].Width   = 120;

            grfOrder.ShowCursor = true;

            int     i   = 0;
            decimal aaa = 0;

            foreach (DataRow row in dt.Rows)
            {
                try
                {
                    i++;
                    //if (i == 1) continue;
                    //Decimal.TryParse(row[ic.ivfDB.oLabiDB.labI.Price].ToString(), out aaa);
                    grfOrder[i, colId]     = row[mposC.mposDB.matDB.mat.material_id].ToString();
                    grfOrder[i, colCode]   = row[mposC.mposDB.matDB.mat.material_code].ToString();
                    grfOrder[i, colName]   = row[mposC.mposDB.matDB.mat.material_name].ToString();
                    grfOrder[i, colPrice]  = row[mposC.mposDB.matDB.mat.price].ToString();
                    grfOrder[i, colWeight] = row[mposC.mposDB.matDB.mat.weight].ToString();
                    grfOrder[i, colOnhand] = row[mposC.mposDB.matDB.mat.on_hand].ToString();
                    //grfOrder[i, colRsLotInput] = row[ic.ivfDB.lbresDB.lbRes.lot_input].ToString();

                    row[0] = (i - 2);
                }
                catch (Exception ex)
                {
                    String err = "";
                }
            }
            CellNoteManager mgr = new CellNoteManager(grfOrder);

            grfOrder.Cols[colId].Visible = false;
            //grfOrder.Cols[colRsLabId].Visible = false;
            //grfOrder.Cols[colRsReqId].Visible = false;
            //grfOrder.Cols[colRsEdit].Visible = false;
            //grfOrder.Cols[colRsLotInput].Visible = false;

            grfOrder.Cols[colCode].AllowEditing   = false;
            grfOrder.Cols[colOnhand].AllowEditing = false;
            grfOrder.Cols[colName].AllowEditing   = false;
            grfOrder.Cols[colPrice].AllowEditing  = false;
            grfOrder.Cols[colWeight].AllowEditing = true;

            frmW.Dispose();
            //theme1.SetTheme(grfFinish, ic.theme);
        }