示例#1
0
        /// <summary>加载公司,仓库,采购人
        /// </summary>
        private void LoadData()
        {
            //仓库列表
            var warehouseDics = WMSSao.GetWarehouseAuth(CurrentSession.Personnel.Get().PersonnelId);

            if (warehouseDics != null)
            {
                WarehouseAuths = warehouseDics;
                foreach (var warehouseDic in warehouseDics)
                {
                    RCB_Warehouse.Items.Add(new RadComboBoxItem(warehouseDic.WarehouseName, warehouseDic.WarehouseId.ToString()));
                }
                RCB_Warehouse.Items.Insert(0, new RadComboBoxItem("--请选择仓库--", Guid.Empty.ToString()));
            }
            RCB_Warehouse.SelectedIndex = 0;
            //WarehouseId = GlobalConfig.MainWarehouseID;

            RCB_Personnel.DataTextField  = "RealName";
            RCB_Personnel.DataValueField = "PersonnelId";
            RCB_Personnel.DataSource     = PersonnelList;
            RCB_Personnel.DataBind();
            RCB_Personnel.Items.Insert(0, new RadComboBoxItem("全部采购人", Guid.Empty.ToString()));
            RCB_Personnel.SelectedIndex = 0;
            PersonnelId = Guid.Empty;

            var list = _companyCussent.GetCompanyCussentList(CompanyType.Suppliers, Enum.State.Enable).ToList();

            RCB_Company.DataSource     = list;
            RCB_Company.DataTextField  = "CompanyName";
            RCB_Company.DataValueField = "CompanyId";
            RCB_Company.DataBind();
            RCB_Company.Items.Insert(0, new RadComboBoxItem("全部供应商", Guid.Empty.ToString()));
            RCB_Company.SelectedIndex = 0;
            CompanyId = Guid.Empty;
        }
示例#2
0
        private void LoadShowData()
        {
            var personnel = CurrentSession.Personnel.Get();

            if (personnel == null)
            {
                RAM.Alert("系统提示:无法获取当前登录人信息,请尝试重新登录后再操作!");
                return;
            }
            IList <CompanyCussentInfo> list = _personIdList.Contains(personnel.PersonnelId) ? _purchaseSet.GetCompanyIds(personnel.PersonnelId) : _companyCussent.GetCompanyCussentList(CompanyType.Suppliers, State.Enable);

            RCB_Company.DataSource     = list;
            RCB_Company.DataTextField  = "CompanyName";
            RCB_Company.DataValueField = "CompanyId";
            RCB_Company.DataBind();
            RCB_Company.Items.Insert(0, new RadComboBoxItem("全部供应商", Guid.Empty.ToString()));
            RCB_Company.SelectedIndex = 0;

            //加载年份
            var year = DateTime.Now.Year;

            for (var i = year - 1; i <= year + 1; i++)
            {
                RCB_Year.Items.Add(new RadComboBoxItem(string.Format("{0}", i), string.Format("{0}", i)));
            }
            RCB_Year.SelectedValue = string.Format("{0}", year);
            var str = year + "年" + DateTime.Now.Month + "月采购金额";

            RadGridProcurementCompactQuantity.MasterTableView.Columns.FindByUniqueName("TheMonthProcurementMoney").HeaderText = str;
        }
示例#3
0
 private void BindCompany()
 {
     RCB_Company.Items.Clear();
     RCB_Company.DataSource     = _companyCussent.GetCompanyCussentList(CompanyType.Suppliers).OrderBy(w => w.CompanyName).ToList();
     RCB_Company.DataTextField  = "CompanyName";
     RCB_Company.DataValueField = "CompanyId";
     RCB_Company.DataBind();
     RCB_Company.Items.Insert(0, new RadComboBoxItem("全部", Guid.Empty.ToString()));
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     _submitController = CreateSubmitInstance();
     if (!IsPostBack)
     {
         //绑定借记单状态
         RCB_State.DataSource = GetDebitNoteStateList();
         RCB_State.DataBind();
         //绑定仓库
         RCB_Warehouse.DataSource = WarehouseDic;
         RCB_Warehouse.DataBind();
         //绑定责任人
         RCB_Persion.DataSource = PersonnelList;
         RCB_Persion.DataBind();
         //绑定供应商
         RCB_Company.DataSource = CompanyCussentList;
         RCB_Company.DataBind();
     }
 }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //绑定责任人
         RCB_Persion.DataSource = PersonnelList;
         RCB_Persion.DataBind();
         //绑定供应商
         RCB_Company.DataSource = CompanyCussentList;
         RCB_Company.DataBind();
         BindAuditType();
         IsLoad            = true;
         Session["IsLoad"] = "1";
         RCB_PurchaseGroup.Items.Add(new RadComboBoxItem("默认", Guid.Empty.ToString()));
     }
     else
     {
         IsLoad = Session["IsLoad"] == null || Session["IsLoad"].ToString() != "0";
     }
 }