void UCRepairCallbackView_AddEvent(object sender, EventArgs e)
 {
     UCRepairCallbackAddOrEdit CallbackAdd = new UCRepairCallbackAddOrEdit();
     CallbackAdd.wStatus = WindowStatus.Add;
     CallbackAdd.uc = uc;
     base.addUserControl(CallbackAdd, "维修返修单-新增", "CallbackAdd" + CallbackAdd.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), CallbackAdd.Name);
 }
 void UCRepairCallbackView_CopyEvent(object sender, EventArgs e)
 {
     UCRepairCallbackAddOrEdit CallbackCopy = new UCRepairCallbackAddOrEdit();
     CallbackCopy.wStatus = WindowStatus.Copy;
     CallbackCopy.uc = uc;
     CallbackCopy.strId = strCallbackId;  //复制单据的Id值
     base.addUserControl(CallbackCopy, "维修返修单-复制", "CallbackCopy" + CallbackCopy.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), CallbackCopy.Name);
 }
 void UCRepairCallbackManager_AddEvent(object sender, EventArgs e)
 {
     UCRepairCallbackAddOrEdit CallbackAdd = new UCRepairCallbackAddOrEdit();
     CallbackAdd.uc = this;
     CallbackAdd.wStatus = WindowStatus.Add;
     base.addUserControl(CallbackAdd, "维修返修单-新增", "CallbackAdd", this.Tag.ToString(), this.Name);
 }
 void UCRepairCallbackView_EditEvent(object sender, EventArgs e)
 {
     UCRepairCallbackAddOrEdit CallbackEdit = new UCRepairCallbackAddOrEdit();
     CallbackEdit.wStatus = WindowStatus.Edit;
     CallbackEdit.uc = uc;
     CallbackEdit.strId = strCallbackId;  //编辑单据的Id值
     base.addUserControl(CallbackEdit, "维修返修单-编辑", "CallbackEdit" + CallbackEdit.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), CallbackEdit.Name);
 }
 void UCRepairCallbackManager_CopyEvent(object sender, EventArgs e)
 {
     //if (!IsCheck("复制"))
     //{
     //    return;
     //}
     if (dgvRData.CurrentRow == null || dgvRData.CurrentRow.Index < 0)
     {
         return;
     }
     int intIndex = dgvRData.CurrentRow.Index;
     strReId = CommonCtrl.IsNullToString(dgvRData.Rows[intIndex].Cells["repair_id"].Value);
     UCRepairCallbackAddOrEdit CallbackCopy = new UCRepairCallbackAddOrEdit();
     CallbackCopy.uc = this;
     CallbackCopy.wStatus = WindowStatus.Copy;
     CallbackCopy.strId = strReId;  //复制单据的Id值
     base.addUserControl(CallbackCopy, "维修返修单-复制", "UCRepairCallbackAddOrEdit" + CallbackCopy.strId, this.Tag.ToString(), this.Name);
 }