/// <summary>
 /// 窗体加载初始化
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UCAllocationBillManager_Load(object sender, EventArgs e)
 {
     try
     {
         //获取默认系统时间
         dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
         dateTimeEnd.Value   = DateTime.Now.ToShortDateString();
         //单据类型
         CommonFuncCall.BindAllocationBillType(ComBorder_type_name, true, "请选择");
         //开单类型
         CommonFuncCall.BindInStockBillingType(ComBbilling_type_name, true, "请选择");
         //获取仓库名称
         CommonFuncCall.BindWarehouse(ComBwh_name, "请选择");
         //单据状态
         CommonFuncCall.BindOrderStatus(ComBorder_status_name, true);
         //公司
         CommonFuncCall.BindCompany(ComBcom_name, "全部");
         //部门
         CommonFuncCall.BindDepartment(ComBorg_name, "", "全部");
         //经办人
         CommonFuncCall.BindHandle(ComBhandle_name, "", "全部");
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }
Пример #2
0
        /// <summary>
        /// 窗体初始加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCAllocationQuery_Load(object sender, EventArgs e)
        {
            try
            {
                base.SetBtnStatus(WindowStatus.View);// 根据窗体状态更改控件状态
                //根据出入库单查询出入库单
                dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
                dateTimeEnd.Value   = DateTime.Now.ToString();
                CommonFuncCall.BindAllocationBillType(Comborder_type_name, true, "请选择");   //单据类型
                CommonFuncCall.BindInStockBillingType(Combbilling_type_name, true, "请选择"); //开单类型
                CommonFuncCall.BindWarehouse(CombWarehouse, "请选择");                        //获取仓库名称
                string com_id = GlobalStaticObj.CurrUserCom_Id;                            //公司ID
                CommonFuncCall.BindCompany(CombCompany, "全部");                             //选择公司名称
                CommonFuncCall.BindDepartment(CombDepartment, com_id, "全部");               //选择部门名称
                CommonFuncCall.BindHandle(Combhandle, "", "全部");                           //选择经办人
                CommonFuncCall.BindHandle(CombOperator, "", "全部");                         //选择操作人


                //根据配件或往来单位查询出入库单
                dateTimePartStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
                dateTimePartEnd.Value   = DateTime.Now.ToString();
                CommonFuncCall.BindCompany(CombCompany, "全部");//公司ID
                CommonFuncCall.BindCompany(CombPartCompany, "全部");
                CommonFuncCall.BindDepartment(CombDepartment, "", "全部");
                CommonFuncCall.BindHandle(Combhandle, "", "全部");
                CommonFuncCall.BindIs_Gift(Combis_gift, true);//是否赠品
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }
        }
Пример #3
0
 /// <summary>
 /// 开单类型选择
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Combbilling_type_name_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(Comborder_type_name.SelectedValue.ToString()))
         {
             CommonFuncCall.BindInStockBillingType(Combbilling_type_name, true, "请选择");
             MessageBoxEx.Show("请您先选择单据类型", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             return;
         }
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }
Пример #4
0
 /// <summary>
 /// 单据类型选择事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ComBorder_type_name_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(Comborder_type_name.SelectedValue.ToString()))
         {
             CommonFuncCall.BindInStockBillingType(Combbilling_type_name, true, "请选择");
         }
         else if (Comborder_type_name.Text.ToString() == InBill)//入库单选择
         {
             CommonFuncCall.BindInStockBillingType(Combbilling_type_name, true, "请选择");
         }
         else if (Comborder_type_name.Text.ToString() == OutBill)//出库单选择
         {
             CommonFuncCall.BindOutStockBillingType(Combbilling_type_name, true, "请选择");
         }
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }