Exemple #1
0
 //公司数据
 protected void FilialeData()
 {
     RCB_FilialeList.DataSource     = FilialeList.Where(f => f.Rank == (int)FilialeRank.Head);
     RCB_FilialeList.DataTextField  = "Name";
     RCB_FilialeList.DataValueField = "ID";
     RCB_FilialeList.DataBind();
     RCB_FilialeList.Items.Insert(0, new RadComboBoxItem("全部", Guid.Empty.ToString()));
     RCB_FilialeList.SelectedValue = Guid.Empty.ToString();
 }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                AllCompanyList              = _companyCussent.GetCompanyCussentList();
                AllCompanyBalanceList       = _companyCussent.GetCompanyBalanceList();
                AllCompanyClassList         = _companyClass.GetCompanyClassList();
                AllCompanyBalanceDetailList = _companyCussent.GetCompanyBalanceDetailList();

                Dictionary <Guid, string> dataSource = new Dictionary <Guid, string> {
                    { Guid.Empty, "--所有--" }
                };
                RCB_Warehouse.DataSource = dataSource.Union(WMSSao.GetAllCanUseWarehouseDics());

                var filialeList = FilialeList.Where(f => f.FilialeTypes.Contains((int)FilialeType.SaleCompany) || f.FilialeTypes.Contains((int)FilialeType.LogisticsCompany) && !f.FilialeTypes.Contains((int)FilialeType.EntityShop));

                RCB_FilialeList.DataSource = filialeList;
                var personnelInfo = CurrentSession.Personnel.Get();
                if (personnelInfo.CurrentFilialeId == Guid.Empty)
                {
                    personnelInfo.CurrentFilialeId = filialeList.First().ID;
                    CurrentSession.Personnel.Set(personnelInfo);
                }
                SelectFilialeId = personnelInfo.CurrentFilialeId;
                GetCompanyCussent();

                RCB_Warehouse.DataBind();
                RCB_FilialeList.DataTextField  = "Name";
                RCB_FilialeList.DataValueField = "ID";
                RCB_FilialeList.DataBind();
                RCB_FilialeList.SelectedValue = string.Format("{0}", personnelInfo.CurrentFilialeId);


                RDP_StartDate.SelectedDate = DateTime.Now.AddDays(-30);
                RDP_EndDate.SelectedDate   = DateTime.Now;
            }

            if (GetPowerOperationPoint("CBIsOut") && !string.IsNullOrWhiteSpace(RCB_FilialeList.SelectedValue) && new Guid(RCB_FilialeList.SelectedValue) != Guid.Empty)
            {
                CB_IsOut.Visible = true;
            }
            else
            {
                CB_IsOut.Visible = false;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RCB_FilialeList.DataSource     = FilialeList.Where(f => f.Rank == (int)FilialeRank.Head && f.FilialeTypes.Contains((int)FilialeType.SaleCompany));
                RCB_FilialeList.DataTextField  = "Name";
                RCB_FilialeList.DataValueField = "ID";
                RCB_FilialeList.DataBind();
                RCB_FilialeList.SelectedIndex = 1;
                RDP_StartTime.SelectedDate    = StartTime;
                RDP_EndTime.SelectedDate      = EndTime;

                var kindTypes = Enum.Attribute.EnumAttribute.GetDict <InvoiceKindType>();
                RcbKindType.DataSource = kindTypes;
                RcbKindType.DataBind();
                RcbKindType.SelectedValue = string.Format("{0}", (Byte)InvoiceKindType.Electron);

                BindNoteType((Byte)InvoiceKindType.Electron);
            }
        }