Exemplo n.º 1
0
 public static bool Add(OrderInfo orderInfo)
 {
     if (SiteConfig.ConfigInfo().ShopConfig.IsSetFunctionary)
     {
         string str = string.Empty;
         foreach (AdministratorInfo info in Administrators.GetAdminListByOperateCode(0, Administrators.GetTotalOfAdmin(), 0x614719c))
         {
             str = str + info.AdminName + ",";
         }
         orderInfo.Functionary = AllotFunctionary(str.TrimEnd(new char[] { ',' }));
     }
     return(dal.Add(orderInfo));
 }
Exemplo n.º 2
0
        private void DlstAdminBind()
        {
            IList <AdministratorInfo> list = new List <AdministratorInfo>();

            if ((this.m_OperateCode != -1) && string.IsNullOrEmpty(this.m_AdminName))
            {
                list = Administrators.GetAdminListByOperateCode((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, this.m_OperateCode);
            }
            else
            {
                list = Administrators.GetAdminList((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, this.m_AdminName);
            }
            this.DlstAdmin.DataSource = list;
            this.Pager.RecordCount    = Administrators.GetTotalOfAdmin();
            this.DlstAdmin.DataBind();
        }