/// <summary>
 /// 复制事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSalePlanManager_CopyEvent(object sender, EventArgs e)
 {
     string sale_plan_id = string.Empty;
     List<string> listField = GetSelectedRecord();
     if (listField.Count == 0)
     {
         MessageBoxEx.Show("请选择要复制的数据!");
         return;
     }
     if (listField.Count > 1)
     {
         MessageBoxEx.Show("一次只可以复制一条数据!");
         return;
     }
     sale_plan_id = listField[0].ToString();
     UCSalePlanAddOrEdit UCSalePlanEdit = new UCSalePlanAddOrEdit(WindowStatus.Copy, sale_plan_id, this);
     base.addUserControl(UCSalePlanEdit, "销售计划单-复制", "UCSalePlanEdit" + sale_plan_id, this.Tag.ToString(), this.Name);
 }
 /// <summary>
 /// 编辑事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSalePlanManager_EditEvent(object sender, EventArgs e)
 {
     string sale_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;
         }
         sale_plan_id = listField[0].ToString();
         UCSalePlanAddOrEdit UCSalePlanEdit = new UCSalePlanAddOrEdit(WindowStatus.Edit, sale_plan_id, this);
         base.addUserControl(UCSalePlanEdit, "销售计划单-编辑", "UCSalePlanEdit" + sale_plan_id, this.Tag.ToString(), this.Name);
     }
 }
 /// <summary>
 /// 添加事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSalePlanManager_AddEvent(object sender, EventArgs e)
 {
     UCSalePlanAddOrEdit UCSalePlanAdd = new UCSalePlanAddOrEdit(WindowStatus.Add, null, this);
     base.addUserControl(UCSalePlanAdd, "销售计划单-添加", "UCSalePlanAdd", this.Tag.ToString(), this.Name);
 }