Ejemplo n.º 1
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.BindAllotBillType(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);
     }
 }