void UCRepairBalanceManager_AddEvent(object sender, EventArgs e) { UCRepairBalanceAddOrEdit BalanceeAdd = new UCRepairBalanceAddOrEdit(); BalanceeAdd.uc = this; BalanceeAdd.wStatus = WindowStatus.Add; base.addUserControl(BalanceeAdd, "维修结算-新增", "BalanceeAdd", this.Tag.ToString(), this.Name); }
void UCRepairBalanceView_AddEvent(object sender, EventArgs e) { UCRepairBalanceAddOrEdit BalanceAdd = new UCRepairBalanceAddOrEdit(); BalanceAdd.uc = uc; BalanceAdd.wStatus = WindowStatus.Add; base.addUserControl(BalanceAdd, "维修结算-新增", "BalanceAdd" + BalanceAdd.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), "UCRepairBalanceView"); }
void UCRepairBalanceView_EditEvent(object sender, EventArgs e) { UCRepairBalanceAddOrEdit BalanceEdit = new UCRepairBalanceAddOrEdit(); BalanceEdit.wStatus = WindowStatus.Edit; BalanceEdit.uc = uc; BalanceEdit.strId = strBalanceId; //编辑单据的Id值 base.addUserControl(BalanceEdit, "维修结算-编辑", "BalanceEdit" + BalanceEdit.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), "UCRepairBalanceView"); }
void UCRepairBalanceView_CopyEvent(object sender, EventArgs e) { UCRepairBalanceAddOrEdit BalanceCopy = new UCRepairBalanceAddOrEdit(); BalanceCopy.wStatus = WindowStatus.Copy; BalanceCopy.uc = uc; BalanceCopy.strId = strBalanceId; //编辑单据的Id值 base.addUserControl(BalanceCopy, "维修结算-复制", "BalanceCopy" + BalanceCopy.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), "UCRepairBalanceView"); }
void UCRepairBalanceManager_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); UCRepairBalanceAddOrEdit BalanceCopy = new UCRepairBalanceAddOrEdit(); BalanceCopy.uc = this; BalanceCopy.wStatus = WindowStatus.Copy; BalanceCopy.strId = strReId; //复制单据的Id值 base.addUserControl(BalanceCopy, "维修结算-复制", "BalanceCopy" + BalanceCopy.strId, this.Tag.ToString(), this.Name); }