Beispiel #1
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void Edit()
        {
            UCSupplierAddOrEdit editFrm = new UCSupplierAddOrEdit(WindowStatus.Edit, model.sup_id, uc);

            deleteMenuByTag(this.Tag.ToString(), uc.Name);
            base.addUserControl(editFrm, "供应商档案-编辑", "UCSupplierEdit" + model.sup_id, this.Tag.ToString(), this.Name);
        }
        /// <summary>
        /// 编辑事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCSupplierManager_EditEvent(object sender, EventArgs e)
        {
            string        suppID    = string.Empty;
            List <string> listField = GetSelectedRecord();

            if (listField.Count == 0)
            {
                MessageBoxEx.Show("请选择要编辑的数据!");
                return;
            }
            if (listField.Count > 1)
            {
                MessageBoxEx.Show("一次只可以编辑一条数据!");
                return;
            }
            suppID = listField[0].ToString();
            UCSupplierAddOrEdit UCSupplierEdit = new UCSupplierAddOrEdit(WindowStatus.Edit, suppID, this);

            base.addUserControl(UCSupplierEdit, "供应商档案-编辑", "UCSupplierEdit" + suppID + "", this.Tag.ToString(), this.Name);
        }
Beispiel #3
0
        private void btnname_Click(object sender, EventArgs e)
        {
            if (!MessageBoxEx.ShowQuestion("新增供应商会关闭当前页面,确认要新增吗?"))
            {
                return;
            }
            if (GlobalStaticObj.AppMainForm is HXCMainForm)
            {
                UCSupplierAddOrEdit UCSupplierAdd = new UCSupplierAddOrEdit(WindowStatus.Add, null, null);
                string tag = "UCSupplierAdd|CL_DataManagement_BasicData|CL_DataManagement_BasicData_Accessories";
                ((HXCMainForm)GlobalStaticObj.AppMainForm).addUserControls(UCSupplierAdd, "供应商档案-新增", "UCSupplierAdd", tag, "");

            }
            this.Close();
        }
 /// <summary>
 /// 编辑
 /// </summary>
 private void Edit()
 {
     UCSupplierAddOrEdit editFrm = new UCSupplierAddOrEdit(WindowStatus.Edit, model.sup_id, uc);
     deleteMenuByTag(this.Tag.ToString(), uc.Name);
     base.addUserControl(editFrm, "供应商档案-编辑", "UCSupplierEdit" + model.sup_id, this.Tag.ToString(), this.Name);
 }
 /// <summary>
 /// 复制事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSupplierManager_CopyEvent(object sender, EventArgs e)
 {
     string suppID = string.Empty;
     List<string> listField = GetSelectedRecord();
     if (listField.Count == 0)
     {
         MessageBoxEx.Show("请选择要复制的数据!");
         return;
     }
     if (listField.Count > 1)
     {
         MessageBoxEx.Show("一次只可以复制一条数据!");
         return;
     }
     suppID = listField[0].ToString();
     UCSupplierAddOrEdit UCSupplierucCopy = new UCSupplierAddOrEdit(WindowStatus.Copy, suppID, this);
     base.addUserControl(UCSupplierucCopy, "供应商档案-复制", "UCSupplierucCopy" + suppID + "", this.Tag.ToString(), this.Name);
 }
 /// <summary>
 /// 添加事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSupplierManager_AddEvent(object sender, EventArgs e)
 {
     UCSupplierAddOrEdit UCSupplierAdd = new UCSupplierAddOrEdit(WindowStatus.Add, null, this);
     base.addUserControl(UCSupplierAdd, "供应商档案-添加", "UCSupplierAdd", this.Tag.ToString(), this.Name);
 }
        /// <summary>
        /// 添加事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCSupplierManager_AddEvent(object sender, EventArgs e)
        {
            UCSupplierAddOrEdit UCSupplierAdd = new UCSupplierAddOrEdit(WindowStatus.Add, null, this);

            base.addUserControl(UCSupplierAdd, "供应商档案-添加", "UCSupplierAdd", this.Tag.ToString(), this.Name);
        }