Example #1
0
        private void Bbt_Click2(object sender, EventArgs e)
        {
            (sender as Label).Enabled = false;
            m_rukukuinfo m = new m_rukukuinfo
            {
                开始维修时间 = SysTime.GetTime
            };

            m.Updata("and id=" + id);
            Dg.SelectedRows[0].Cells["开始维修时间"].Value = SysTime.GetTime;

            if (Dg.SelectedRows[0].Cells["责任部门"].Value.ToString() == "采购部")
            {
                维修报告 bg = new 维修报告(int.Parse(Dg.SelectedRows[0].Cells["id"].Value.ToString()), KF, true);
            }

            if (Dg.SelectedRows[0].Cells["责任部门"].Value.ToString() == "生产部" || Dg.SelectedRows[0].Cells["责任部门"].Value.ToString() == "售后部")
            {
                领取物料 bg = new 领取物料(Dg.SelectedRows[0].Cells["编号"].Value.ToString(), id, KF);
            }
        }
Example #2
0
 private void WBbt_Click(object sender, EventArgs e)
 {
     (sender as Label).Enabled = false;
     领取物料 bg = new 领取物料(Dg.SelectedRows[0].Cells["编号"].Value.ToString(), id, KF);
 }