Пример #1
0
 /// <summary>
 /// 添加事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSaleBillManang_AddEvent(object sender, EventArgs e)
 {
     UCSaleBillAddOrEdit UCSaleBillAdd = new UCSaleBillAddOrEdit(WindowStatus.Add, null, this);
     base.addUserControl(UCSaleBillAdd, "销售开单-添加", "UCSaleBillAdd", this.Tag.ToString(), this.Name);
 }
Пример #2
0
 /// <summary>
 /// 复制事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSaleBillManang_CopyEvent(object sender, EventArgs e)
 {
     string sale_billing_id = string.Empty;
     List<string> listField = GetSelectedRecord();
     if (listField.Count == 0)
     {
         MessageBoxEx.Show("请选择要复制的数据!");
         return;
     }
     if (listField.Count > 1)
     {
         MessageBoxEx.Show("一次只可以复制一条数据!");
         return;
     }
     sale_billing_id = listField[0].ToString();
     UCSaleBillAddOrEdit UCSaleBillCopy = new UCSaleBillAddOrEdit(WindowStatus.Copy, sale_billing_id, this);
     base.addUserControl(UCSaleBillCopy, "销售开单-复制", "UCSaleBillCopy" + sale_billing_id + "", this.Tag.ToString(), this.Name);
 }
Пример #3
0
 /// <summary>
 /// 编辑事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCSaleBillManang_EditEvent(object sender, EventArgs e)
 {
     string sale_billing_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_billing_id = listField[0].ToString();
         UCSaleBillAddOrEdit UCSaleBillEdit = new UCSaleBillAddOrEdit(WindowStatus.Edit, sale_billing_id, this);
         base.addUserControl(UCSaleBillEdit, "销售开单-编辑", "UCSaleBillEdit" + sale_billing_id + "", this.Tag.ToString(), this.Name);
     }
 }