Example #1
0
        /// <summary> 复制事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCSaleOrderManager_CopyEvent(object sender, EventArgs e)
        {
            string        sale_order_id = string.Empty;
            List <string> listField     = GetSelectedRecord();

            if (listField.Count == 0)
            {
                MessageBoxEx.Show("请选择要复制的数据!");
                return;
            }
            if (listField.Count > 1)
            {
                MessageBoxEx.Show("一次只可以复制一条数据!");
                return;
            }
            sale_order_id = listField[0].ToString();
            UCSaleOrderAddOrEdit UCSaleOrderCopy = new UCSaleOrderAddOrEdit(WindowStatus.Copy, sale_order_id, this);

            base.addUserControl(UCSaleOrderCopy, "销售订单-复制", "UCSaleOrderCopy" + sale_order_id + "", this.Tag.ToString(), this.Name);
        }
Example #2
0
        /// <summary> 编辑事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCSaleOrderManager_EditEvent(object sender, EventArgs e)
        {
            string        sale_order_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_order_id = listField[0].ToString();
                UCSaleOrderAddOrEdit UCSaleOrderEdit = new UCSaleOrderAddOrEdit(WindowStatus.Edit, sale_order_id, this);
                base.addUserControl(UCSaleOrderEdit, "销售订单-编辑", "UCSaleOrderEdit" + sale_order_id + "", this.Tag.ToString(), this.Name);
            }
        }
Example #3
0
        /// <summary> 添加事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCSaleOrderManager_AddEvent(object sender, EventArgs e)
        {
            UCSaleOrderAddOrEdit UCSaleOrderAdd = new UCSaleOrderAddOrEdit(WindowStatus.Add, null, this);

            base.addUserControl(UCSaleOrderAdd, "销售订单-添加", "UCSaleOrderAdd", this.Tag.ToString(), this.Name);
        }