void UCReceiveManager_AddEvent(object sender, EventArgs e) { UCReceiveAddOrEdit ReceiveAdd = new UCReceiveAddOrEdit(); ReceiveAdd.uc = this; ReceiveAdd.wStatus = WindowStatus.Add; base.addUserControl(ReceiveAdd, "维修接待-新增", "UCReceiveAdd", this.Tag.ToString(), this.Name); }
void UCReceiveView_AddEvent(object sender, EventArgs e) { UCReceiveAddOrEdit ReceiveAdd = new UCReceiveAddOrEdit(); ReceiveAdd.wStatus = WindowStatus.Add; ReceiveAdd.uc = uc; base.addUserControl(ReceiveAdd, "维修接待-新增", "UCReceiveAdd", this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), ReceiveAdd.Name); }
void UCReceiveView_EditEvent(object sender, EventArgs e) { UCReceiveAddOrEdit ReceiveEdit = new UCReceiveAddOrEdit(); ReceiveEdit.wStatus = WindowStatus.Edit; ReceiveEdit.uc = uc; ReceiveEdit.strId = strReceiveId; //编辑单据的Id值 base.addUserControl(ReceiveEdit, "维修接待-编辑", "ReceiveEdit" + ReceiveEdit.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), ReceiveEdit.Name); }
void UCReceiveView_CopyEvent(object sender, EventArgs e) { UCReceiveAddOrEdit ReceiveCopy = new UCReceiveAddOrEdit(); ReceiveCopy.wStatus = WindowStatus.Copy; ReceiveCopy.uc = uc; ReceiveCopy.strId = strReceiveId; //复制单据的Id值 base.addUserControl(ReceiveCopy, "维修接待-复制", "ReceiveCopy" + ReceiveCopy.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), ReceiveCopy.Name); }
void UCReceiveManager_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["maintain_id"].Value); UCReceiveAddOrEdit ReceiveCopy = new UCReceiveAddOrEdit(); ReceiveCopy.uc = this; ReceiveCopy.wStatus = WindowStatus.Copy; ReceiveCopy.strId = strReId; //复制单据的Id值 base.addUserControl(ReceiveCopy, "维修接待-复制", "ReceiveCopy" + ReceiveCopy.strId, this.Tag.ToString(), this.Name); }