/// <summary>
 /// 复制事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCPurchasePlanOrderManager_CopyEvent(object sender, EventArgs e)
 {
     string plan_id = string.Empty;
     List<string> listField = GetSelectedRecord();
     if (listField.Count == 0)
     {
         MessageBoxEx.Show("请选择要复制的数据!");
         return;
     }
     if (listField.Count > 1)
     {
         MessageBoxEx.Show("一次只可以复制一条数据!");
         return;
     }
     plan_id = listField[0].ToString();
     UCPurchasePlanOrderAddOrEdit UCPurchasePlanOrderCopy = new UCPurchasePlanOrderAddOrEdit(WindowStatus.Copy, plan_id, this);
     base.addUserControl(UCPurchasePlanOrderCopy, "采购计划单-复制", "UCPurchasePlanOrderCopy" + plan_id + "", this.Tag.ToString(), this.Name);
 }
 /// <summary>
 /// 编辑事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCPurchasePlanOrderManager_EditEvent(object sender, EventArgs e)
 {
     string plan_id = string.Empty;
     bool IsHandle = true;
     List<string> listField = GetSelectedRecordByEditDelete(ref IsHandle);
     if (IsHandle)
     {
         if (listField.Count == 0)
         {
             MessageBoxEx.Show("请选择要编辑的数据!");
             return;
         }
         if (listField.Count > 1)
         {
             MessageBoxEx.Show("一次只可以编辑一条数据!");
             return;
         }
         plan_id = listField[0].ToString();
         UCPurchasePlanOrderAddOrEdit UCPurchasePlanOrderEdit = new UCPurchasePlanOrderAddOrEdit(WindowStatus.Edit, plan_id, this);
         base.addUserControl(UCPurchasePlanOrderEdit, "采购计划单-编辑", "UCPurchasePlanOrderEdit" + plan_id + "", this.Tag.ToString(), this.Name);
     }
 }
 /// <summary>
 /// 添加事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCPurchasePlanOrderManager_AddEvent(object sender, EventArgs e)
 {
     UCPurchasePlanOrderAddOrEdit UCPurchasePlanOrderAdd = new UCPurchasePlanOrderAddOrEdit(WindowStatus.Add, null, this);
     base.addUserControl(UCPurchasePlanOrderAdd, "采购计划单-添加", "UCPurchasePlanOrderAdd", this.Tag.ToString(), this.Name);
 }