private void UCRequisitionQuery_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.ToString(); dateTimeEnd.Value = DateTime.Now.ToString(); //单据类型 CommonFuncCall.BindAllocationBillType(ComBorder_type_name, true, "请选择"); CommonFuncCall.BindCompany(ComBcall_in_org_name, "请选择");//调入机构 //调出仓库 CommonFuncCall.BindWarehouse(ComBcall_out_wh_name, "请选择"); //调入仓库名称 CommonFuncCall.BindWarehouse(ComBcall_in_org_name, "请选择"); //调拨出入库状态 CommonFuncCall.BindBillInOutStatus(Combinout_status, true, "请选择"); //单据状态 CommonFuncCall.BindOrderStatus(ComBcall_in_wh_name, true); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); //运输方式 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "请选择"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionAddOrEdit_Load(object sender, EventArgs e) { try { CommonFuncCall.BindAllotBillType(Comborder_type_name, true, "请选择"); //调拨单类型 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "请选择"); //运输方式 CommonFuncCall.BindCompany(combcall_out_org_name, "请选择"); //调出机构 CommonFuncCall.BindCompany(combcall_in_org_name, "请选择"); //调入机构 CommonFuncCall.BindWarehouse(combcall_out_wh_name, "请选择"); //调出仓库 CommonFuncCall.BindWarehouse(combcall_in_wh_name, "请选择"); //调入仓库 CommonFuncCall.BindBillInOutStatus(Combinout_status, true, "请选择"); //调拨单的出入库状态 BrandTable = CommonFuncCall.BindDicDataSource("sys_parts_brand"); //获得品牌名称 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(AllotBillId); //获取单据头尾信息 GetBillPartsMsg(AllotBillId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
private void UCRequisitionQuery_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); //盘点单出入库状态 CommonFuncCall.BindBillInOutStatus(ComBInOutStatus, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(ComBwh_name, "请选择"); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }