void UCVehicleManage_AddEvent(object sender, EventArgs e) { UCVehicleAddOrEdit Add = new UCVehicleAddOrEdit(); Add.uc = this; Add.wStatus = WindowStatus.Add; base.addUserControl(Add, "车辆档案-新增", "UCVehicleAddOrEdit", this.Tag.ToString(), this.Name); }
void UCVehicleView_AddEvent(object sender, EventArgs e) { UCVehicleAddOrEdit Add = new UCVehicleAddOrEdit(); Add.wStatus = WindowStatus.Add; base.addUserControl(Add, "车辆档案-新增", "Add" + Add.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), Add.Name); }
void UCVehicleView_EditEvent(object sender, EventArgs e) { UCVehicleAddOrEdit Edit = new UCVehicleAddOrEdit(); Edit.uc = uc; Edit.wStatus = WindowStatus.Edit; Edit.strId = strVId; base.addUserControl(Edit, "车辆档案-编辑", "Edit" + Edit.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), Edit.Name); }
void UCVehicleView_CopyEvent(object sender, EventArgs e) { UCVehicleAddOrEdit Copy = new UCVehicleAddOrEdit(); //UCVehicleManage manage = new UCVehicleManage(); Copy.uc = uc; Copy.wStatus = WindowStatus.Copy; Copy.strId = strVId; base.addUserControl(Copy, "领料单-复制", "Copy" + Copy.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), Copy.Name); }
void UCVehicleManage_EditEvent(object sender, EventArgs e) { if (!IsCheck("编辑")) { return; } UCVehicleAddOrEdit Edit = new UCVehicleAddOrEdit(); Edit.uc = this; Edit.wStatus = WindowStatus.Edit; Edit.strId = strVId; //车辆档案ID base.addUserControl(Edit, "车辆档案-编辑", "UCVehicleAddOrEdit" + Edit.strId, this.Tag.ToString(), this.Name); }
private void btnSave_Click(object sender, EventArgs e) { if (!MessageBoxEx.ShowQuestion("新增车辆档案会关闭当前页面,确认要新增吗?")) { return; } if (GlobalStaticObj.AppMainForm is HXCMainForm) { UCVehicleAddOrEdit Add = new UCVehicleAddOrEdit(); UCVehicleManage manage = new UCVehicleManage(); Add.uc = manage; Add.wStatus = WindowStatus.Add; string tag = "CL_DataManagement_BasicData_VehicleFiles|CL_DataManagement|CL_DataManagement_BasicData"; ((HXCMainForm)GlobalStaticObj.AppMainForm).addUserControls(Add, "车辆档案-新增", "Add", tag, ""); } this.Close(); }
void UCVehicleView_AddEvent(object sender, EventArgs e) { UCVehicleAddOrEdit Add = new UCVehicleAddOrEdit(); Add.wStatus = WindowStatus.Add; base.addUserControl(Add, "车辆档案-新增", "UCVehicleAddOrEdit" + Add.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), "UCVehicleView"); }
void UCVehicleView_EditEvent(object sender, EventArgs e) { UCVehicleAddOrEdit Edit = new UCVehicleAddOrEdit(); Edit.uc = uc; Edit.wStatus = WindowStatus.Edit; Edit.strId = strVId; base.addUserControl(Edit, "车辆档案-编辑", "UCVehicleAddOrEdit" + Edit.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), "UCVehicleView"); }
void UCVehicleView_CopyEvent(object sender, EventArgs e) { UCVehicleAddOrEdit Copy = new UCVehicleAddOrEdit(); UCVehicleManage manage = new UCVehicleManage(); Copy.uc = uc; Copy.wStatus = WindowStatus.Copy; Copy.strId = strVId; base.addUserControl(Copy, "领料单-复制", "UCVehicleAddOrEdit" + Copy.strId, this.Tag.ToString(), this.Name); deleteMenuByTag(this.Tag.ToString(), "UCVehicleView"); }