Esempio n. 1
0
        private void 取走ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int      id   = Convert.ToInt32(dataGridView1.Rows[0].Cells["jcID"].Value);
            qzjcFrom qzjc = qzjcFrom.CreateForm(id, databindview1, hsuaxin);

            qzjc.Show();
            qzjc.Focus();
        }
Esempio n. 2
0
        private void 寄存取走ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int      id   = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells["glDanNo"].Value);
            qzjcFrom qzjc = qzjcFrom.CreateForm(id, dataviewBind1, () => { });

            qzjc.Show();
            qzjc.Focus();
        }
Esempio n. 3
0
 public static qzjcFrom CreateForm(int ID, databind bind, bindsx ndsx)
 {
     binsx     = ndsx;
     id        = ID;
     databind1 = bind;
     if (_danli == null)
     {
         _danli = new qzjcFrom();
     }
     return(_danli);
 }
Esempio n. 4
0
        public void ZhiXing(string name, string tel, int id, string dannumber)
        {
            WPEnd model = new WPEnd();

            model.Name      = name;
            model.TelPhon   = tel;
            model.JCID      = id;
            model.DanNumber = dannumber;
            model.DateTime  = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            bool result = qzbll.AddIteam(model);

            if (result)
            {
                qzjcFrom qzjc = qzjcFrom.CreateForm(id, databindview1, hsuaxin);
                qzjc.Show();
                qzjc.Focus();
            }
        }
Esempio n. 5
0
        private void button5_Click(object sender, EventArgs e)
        {
            List <int> list = new List <int>();

            foreach (DataGridViewRow iteam in dataGridView1.Rows)
            {
                if (Convert.ToBoolean(iteam.Cells["XZ"].Value))
                {
                    list.Add(Convert.ToInt32(iteam.Cells["jcID"].Value));
                }
            }
            if (list.Count != 1)
            {
                MessageBox.Show("请选择一条数据!");
                return;
            }
            //int id = Convert.ToInt32(dataGridView1.Rows[0].Cells["jcID"].Value);
            qzjcFrom qzjc = qzjcFrom.CreateForm(list[0], databindview1, hsuaxin);

            qzjc.Show();
            qzjc.Focus();
        }
Esempio n. 6
0
 private void qzjcFrom_FormClosing(object sender, FormClosingEventArgs e)
 {
     _danli = null;
 }