Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 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();
 }
Exemplo n.º 7
0
 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);
 }
Exemplo n.º 8
0
 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);
 }
Exemplo n.º 9
0
 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");
 }
Exemplo n.º 10
0
 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");
 }
Exemplo n.º 11
0
 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");
 }