/// <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);
     }
 }
Example #2
0
 /// <summary>
 /// 窗体初始化加载
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UCRequisitionManager_Load(object sender, EventArgs e)
 {
     try
     {
         //获取默认系统时间
         dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
         dateTimeEnd.Value   = DateTime.Now.ToString();
         //单据类型
         CommonFuncCall.BindAllocationBillType(ComBorder_type_name, true, "请选择");
         //开单类型
         CommonFuncCall.BindAllocationBillingType(ComBcall_out_wh_name, true, "请选择");
         //获取仓库名称
         CommonFuncCall.BindWarehouse(ComBcall_in_wh_name, "请选择");
         CommonFuncCall.BindWarehouse(ComBcall_out_wh_name, "请选择");
         // 调入机构
         CommonFuncCall.BindCompany(ComBcall_in_org_name, "全部");
         //运输方式
         CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "全部");
         //单据状态
         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);
     }
 }
Example #3
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);
            }
        }