Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 /// <summary>功   能:获取该员工可授权仓库的集合
 /// </summary>
 public static IList <WarehouseAuth> GetWarehouseIsPermission(Guid personnelId)
 {
     return(WMSSao.GetWarehouseAuth(personnelId));
 }