예제 #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            AddWorkForm awf = new AddWorkForm();

            awf.type = "add";
            awf.addWorkFormChange_ += new AddWorkForm.AddWorkFormChange(_AddWorkFormChange);
            awf.ShowDialog();
        }
예제 #2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (this.dataGridViewRepair.SelectedRows.Count > 0)
     {
         string      WsCode = this.dataGridViewRepair.SelectedRows[0].Cells["工单编号"].Value.ToString().Trim();
         AddWorkForm awf    = new AddWorkForm();
         //awf.wsid_ = WsCode;
         awf.type = "edit";
         awf.addWorkFormChange_ += new AddWorkForm.AddWorkFormChange(_AddWorkFormChange);
         awf.ShowDialog();
     }
 }
예제 #3
0
        private void button7_Click(object sender, EventArgs e)
        {
            if (this.dgv_worksheet.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dgv_worksheet.SelectedRows[0].Cells["系统编号"].Value == null)
            {
                return;
            }
            string sysid_ = this.dgv_worksheet.SelectedRows[0].Cells["系统编号"].Value.ToString().Trim();

            AddWorkForm awf = new AddWorkForm();

            awf.type   = "edit"; //新增时传入"客户编码"
            awf.sysid_ = sysid_;
            awf.ShowDialog();
        }
예제 #4
0
        private void button7_Click(object sender, EventArgs e)
        {
            if (this.dgv_worksheet.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dgv_worksheet.SelectedRows[0].Cells["sysid"].Value == null)
            {
                return;
            }
            string sysid_ = this.dgv_worksheet.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();

            AddWorkForm awf = new AddWorkForm();

            awf.addWorkFormChange_ += new AddWorkForm.AddWorkFormChange(addWorkFormChange_);
            awf.type   = "edit";
            awf.sysid_ = sysid_;   //派工单编号
            awf.ShowDialog();
        }
예제 #5
0
        private void button6_Click(object sender, EventArgs e)
        {
            if (dgv_CustMac.SelectedRows.Count <= 0)
            {
                return;
            }
            if (dgv_CustMac.SelectedRows[0].Cells["sysid"].Value == null)
            {
                return;
            }
            if (dgv_CustMac.SelectedRows[0].Cells["sysid"].Value.ToString().Trim() == "")
            {
                return;
            }
            string      machineid_ = dgv_CustMac.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
            AddWorkForm awf        = new AddWorkForm();

            awf.type      = "add"; //新增时传入"客户编码"
            awf.machineid = machineid_;
            awf.ShowDialog();
        }