• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Components.QueryParam类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中FrameWork.Components.QueryParam的典型用法代码示例。如果您正苦于以下问题:C# QueryParam类的具体用法?C# QueryParam怎么用?C# QueryParam使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



QueryParam类属于FrameWork.Components命名空间,在下文中一共展示了QueryParam类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Get_sys_UserTable

 /// <summary>
 /// 根据用户登陆名,获取用户资料
 /// </summary>
 /// <param name="u_LoginName">用户名</param>
 /// <returns>用户实体类</returns>
 public static sys_UserTable Get_sys_UserTable(string u_LoginName)
 {
     QueryParam qp = new QueryParam();
     qp.Where = string.Format(" Where U_LoginName='{0}' ",u_LoginName);
     int rInt = 0;
     return BusinessFacade.sys_UserList(qp,out rInt)[0] as sys_UserTable;
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:12,代码来源:UserData.cs


示例2: InitDropDown

        private void InitDropDown()
        {
            int gp_pid = 0;
            sys_GroupTable gp = BusinessFacade.sys_GroupDisp(UserData.GetUserDate.U_GroupID);
            //当前不为检测站,就取得当前单位父节点
            if (gp.Type != 2)
            {
                gp = BusinessFacade.sys_GroupDisp(gp.G_ParentID);

            }
            gp_pid = gp.GroupID;

            QueryParam qp = new QueryParam();
            qp.Where = "Where G_ParentID = " + gp_pid + " And Type = 1";
            int _Count = 0;
            ArrayList gplst = BusinessFacade.sys_GroupList(qp, out _Count);

            ListItem empty = new ListItem("请选择检定地点", "0");
            DropDownList1.Items.Add(empty);

            if (_Count > 0)
            {
                ListItem li = null;
                foreach (sys_GroupTable item in gplst)
                {
                    li = new ListItem(item.G_CName, item.GroupID.ToString());
                    DropDownList1.Items.Add(li);
                }
            }
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:30,代码来源:InputForm.aspx.cs


示例3: OnStart

        private void OnStart()
        {
            QueryParam qp = new QueryParam();
            qp.Orderfld = " M_Applicationid,M_OrderLevel ";
            qp.OrderType = 0;
            qp.Where = Common.ApplicationID != 0 ? string.Format("Where M_Close=0 and M_ParentID=0 and M_ApplicationID ={0}", Common.ApplicationID) : "Where M_Close=0 and M_ParentID=0 ";
            int RecordCount = 0;
            ArrayList lst = BusinessFacade.sys_ModuleList(qp, out RecordCount);
            int i = 1;
            foreach (sys_ModuleTable var in lst)
            {
                ArrayList lst2 = BusinessFacade.GetPermissionModuleSub(var.ModuleID);
                if (lst2.Count > 0)
                {
                    if (i == 1)
                        sb_FramesetRows.Append("21,*");
                    else
                        sb_FramesetRows.Append(",21,0");

                    sb_HTMLSrc.AppendFormat("<frame name={0}menubarbutton_{1}{0} target={0}pagemain{0} scrolling={0}no{0} noresize src={0}Menu1_Button.aspx?APCatalogueID={1}&OrderNo={2}&APCatCName={3}{0}>{4}<frame name={0}menubar_{1}{0} target={0}pagemain{0} scrolling={0}auto{0} noresize src={0}Menu1_Disp.aspx?ModuleID={5}&OrderNo={2}{0} STYLE={0}border-width:1; border-bottom-style:solid{0}>{4}", "\"", var.ModuleID, i, var.M_CName, "\n",var.ModuleID);

                    i++;
                }
            }
        }
开发者ID:janker007,项目名称:cocoshun,代码行数:25,代码来源:Menu1.aspx.cs


示例4: BindDataList

 private void BindDataList()
 {
     QueryParam qp = new QueryParam();
     int RecordCount = 0;
     List<CommandAssembleEntity> lst = BusinessFacadeShanliTech_HLD_Business.CommandAssembleList(qp, out RecordCount);
     List<CommandAssembleEntity> distList = new List<CommandAssembleEntity>();
     if (RecordCount > 0)
     {
         CommandAssembleEntity cae = null;
         foreach (CommandAssembleEntity item in lst)
         {
             cae = distList.Find(x => { return item.DeviceModel.Equals(x.DeviceModel); });
             if (cae == null || cae.ID <= 0)
             {
                 distList.Add(item);
             }
             else
             {
                 continue;
             }
         }
     }
     GridView1.DataSource = distList;
     GridView1.DataBind();
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:25,代码来源:AssembleDeviceModelSelectList.aspx.cs


示例5: BindData

        private void BindData()
        {
            if (Common.GetOnlineCountType == OnlineCountType.DataBase)
            {
                QueryParam qp = new QueryParam();
                qp.PageIndex = AspNetPager1.CurrentPageIndex;
                qp.PageSize = AspNetPager1.PageSize;
                int RecordCount = 0;
                ArrayList lst = BusinessFacade.sys_OnlineList(qp, out RecordCount);

                GridView1.DataSource = CountOnlineList(lst);
                GridView1.DataBind();
                this.AspNetPager1.RecordCount = RecordCount;
            }
            else
            {
                AspNetPager1.RecordCount = FrameWorkPermission.UserOnlineList.AllCount;
                ArrayList lst = new ArrayList();
                for (int i = AspNetPager1.StartRecordIndex; i <= AspNetPager1.EndRecordIndex; i++)
                {
                    lst.Add(FrameWorkPermission.UserOnlineList.GetList[i - 1]);
                }
                GridView1.DataSource = lst;
                GridView1.DataBind();
            }
        }
开发者ID:janker007,项目名称:cocoshun,代码行数:26,代码来源:default.aspx.cs


示例6: Button1_Click

        protected void Button1_Click(object sender, EventArgs e)
        {
            FrameWorkPermission.CheckPermissionVoid(PopedomType.Orderby);
            string ItemsList = (string)Common.sink(OrderByListItems.UniqueID, MethodType.Post, 100000, 1, DataType.Str);
            if (ItemsList.Length > 0)
            {
                int RecordCount = 0;
                ArrayList lst = new ArrayList();
                QueryParam qp = new QueryParam();

                string[] ItemsLists = ItemsList.Split(',');
                for (int i = 0; i < ItemsLists.Length; i++)
                {
                    BusinessFacade.Update_Table_Fileds("sys_Module", string.Format("M_OrderLevel='{0}{1}'", Common.FillZero(i.ToString(), 2), "00"), string.Format("ModuleID={0}", ItemsLists[i]));
                    qp.Orderfld = "M_OrderLevel ";
                    qp.OrderType = 0;
                    qp.Where = string.Format("Where M_ParentID={0}", ItemsLists[i]);
                    RecordCount = 0;
                    lst = BusinessFacade.sys_ModuleList(qp, out RecordCount);
                    if (lst.Count > 0)
                    {
                        RecordCount = 1;
                        foreach (sys_ModuleTable var in lst)
                        {
                            BusinessFacade.Update_Table_Fileds("sys_Module", string.Format("M_OrderLevel='{0}{1}'", Common.FillZero(i.ToString(), 2), Common.FillZero(RecordCount.ToString(), 2)), string.Format("ModuleID={0}", var.ModuleID));
                            RecordCount++;
                        }
                    }
                }
            }

            EventMessage.MessageBox(1, "�����ɹ�", string.Format("����{0}ģ��ɹ�!",AppName), Icon_Type.OK, Common.GetHomeBaseUrl(string.Format("ModuleList.aspx?S_ID={0}&AppName={1}",S_ID,AppName)));
        }
开发者ID:janker007,项目名称:cocoshun,代码行数:33,代码来源:ModuleList.aspx.cs


示例7: GetSubCount

 public string GetSubCount(string F_Key)
 {
     QueryParam qp = new QueryParam();
     qp.Where = string.Format("Where V_F_Key='{0}'", Common.inSQL(F_Key));
     int RecordCount = 0;
     BusinessFacade.sys_FieldValueList(qp, out RecordCount);
     return RecordCount.ToString();
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:8,代码来源:default.aspx.cs


示例8: OnStart

        private void OnStart()
        {
            sys_GroupTable gt = BusinessFacade.sys_GroupDisp(GroupID);
            this.G_CName.Text = gt.G_CName;

            this.Address_Input.Text = gt.Address;
            this.CertificateNumber_Input.Text = gt.CertificateNumber;
            this.Fax_Input.Text = gt.Fax;
            this.Tel_Input.Text = gt.Tel;
            this.EmailAddress_Input.Text = gt.EmailAddress;
            this.ZipCode_Input.Text = gt.ZipCode;
            this.G_Type_DropDown.SelectedValue = gt.Type.ToString();
            
            if (gt.G_ParentID == 0)
                G_ParentID_Txt.Text = "部门列表";
            else
                G_ParentID_Txt.Text = BusinessFacade.sys_GroupDisp(gt.G_ParentID).G_CName;
            CatListTitle.Text = string.Format("<a href='GroupList.aspx'>部门列表</a>{0}", BusinessFacade.GetGroupTitle(GroupID));
            //判断是否删除
            if (CMD == "Delete")
            {
                FrameWorkPermission.CheckPermissionVoid(PopedomType.Delete);
                
                //删除子分类
                DeleteCat(GroupID);
                //删除当前分类
                BusinessFacade.Update_Table_Fileds("sys_Group", "G_Delete=1", string.Format("GroupID={0}", GroupID));
                





                if (gt.G_ParentID!=0)
                {
                    //更新父类子类数
                    BusinessFacade.Update_Table_Fileds("sys_Group", "G_ChildCount=G_ChildCount-1", string.Format("GroupID={0}", gt.G_ParentID));
                    //更新父类子类排序  
                    int RecordCount = 0;
                    QueryParam qp = new QueryParam();
                    qp.Where = string.Format("Where G_ParentID={0} and G_Delete=0",gt.G_ParentID);
                    qp.Orderfld = "G_Level,G_ShowOrder";
                    qp.OrderType = 0;
                    ArrayList lst = BusinessFacade.sys_GroupList(qp,out RecordCount);
                    RecordCount = 1;
                    foreach (sys_GroupTable var in lst)
                    {
                        BusinessFacade.Update_Table_Fileds("sys_Group", string.Format("G_ShowOrder={0}", RecordCount), string.Format("GroupID={0}", var.GroupID));
                        RecordCount++;
                    }

                }
                EventMessage.MessageBox(1, "操作成功", string.Format("删除部门({0})成功!",gt.G_CName), Icon_Type.OK, Common.GetHomeBaseUrl("GroupList.aspx"),Common.BuildJs);

            }
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:56,代码来源:Edit.aspx.cs


示例9: BindDataList

 private void BindDataList()
 {
     QueryParam qp = new QueryParam();
     qp.Where = string.Format("Where DeviceNum = '{0}' And DeviceModel = '{1}' And FunctionCode = '{2}'", _Device.DeviceNum, _Device.DeviceModel, _Function.FunctionCode);
     qp.OrderType = 1;
     int RecordCount = 0;
     List<Device_Permition_DataEntity> lst = BusinessFacadeShanliTech_HLD_Business.Device_Permition_DataList(qp, out RecordCount);
     GridView1.DataSource = lst;
     GridView1.DataBind();
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:10,代码来源:RangeSelectList.aspx.cs


示例10: GetCatCount

 public int GetCatCount(int ApplicationID)
 {
     QueryParam qp = new QueryParam();
     qp.Orderfld = " M_OrderLevel ";
     qp.OrderType = 0;
     qp.Where = string.Format("Where M_ApplicationID ={0} and M_ParentID=0 ", ApplicationID);
     int RecordCount = 0;
     ArrayList lst = BusinessFacade.sys_ModuleList(qp, out RecordCount);
     return RecordCount;
 }
开发者ID:janker007,项目名称:cocoshun,代码行数:10,代码来源:List.aspx.cs


示例11: sys_ApplicationsList

 /// <summary>
 /// 返回sys_ApplicationsTable实体类的ArrayList对象
 /// </summary>
 /// <param name="qp">查询类</param>
 /// <param name="RecordCount">返回记录总数</param>
 /// <returns>sys_ApplicationsTable实体类的ArrayList对象</returns>
 public static ArrayList sys_ApplicationsList(QueryParam qp, out int RecordCount)
 {
     qp.TableName = "sys_Applications";
     qp.ReturnFields = "*";
     if (qp.Orderfld == null)
     {
         qp.Orderfld = "ApplicationID";
     }
     return DataProvider.Instance().sys_ApplicationsList(qp, out RecordCount);
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:16,代码来源:BusinessFacade.cs


示例12: BindMenu

 /// <summary>
 /// �����˵�
 /// </summary>
 private void BindMenu()
 {
     QueryParam qp = new QueryParam();
     qp.Orderfld = " M_Applicationid,M_OrderLevel ";
     qp.OrderType = 0;
     qp.Where = Common.ApplicationID != 0 ? string.Format("Where M_Close=0 and M_ParentID=0 and M_ApplicationID ={0}", Common.ApplicationID) : "Where M_Close=0 and M_ParentID=0 ";
     int RecordCount = 0;
     ArrayList lst = BusinessFacade.sys_ModuleList(qp, out RecordCount);
     LeftMenu.DataSource = lst;
     LeftMenu.DataBind();
 }
开发者ID:janker007,项目名称:cocoshun,代码行数:14,代码来源:left.aspx.cs


示例13: OnDisp

 /// <summary>
 /// 绑定数据
 /// </summary>
 private void OnDisp()
 {
     QueryParam qp = new QueryParam();
     qp.Orderfld = " M_Applicationid,M_OrderLevel ";
     qp.OrderType = 0;
     qp.Where = string.Format("Where M_Close=0 and M_ParentID=0 and M_ApplicationID ={0}", ApplicationID);
     int RecordCount = 0;
     ArrayList lst = BusinessFacade.sys_ModuleList(qp, out RecordCount);
     Module_Main.DataSource = lst;
     Module_Main.DataBind();
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:14,代码来源:RolePermissionManager.aspx.cs


示例14: BindDataList

 /// <summary>
 /// 绑定数据
 /// </summary>
 private void BindDataList()
 {
     QueryParam qp = new QueryParam();
     qp.Where = string.Format("Where DeviceModel = '{0}'", DeviceModel);
     qp.Orderfld = Orderfld;
     qp.OrderType = OrderType;
     int RecordCount = 0;
     List<CommandAssembleEntity> lst = BusinessFacadeShanliTech_HLD_Business.CommandAssembleList(qp, out RecordCount);
     GridView1.DataSource = lst;
     GridView1.DataBind();
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:14,代码来源:AssembleCmd_SaveUpdate.aspx.cs


示例15: ListBind

 private void ListBind()
 {
     QueryParam qp = new QueryParam();
     qp.OrderType = 0;
     qp.PageIndex = Pager.CurrentPageIndex;
     qp.PageSize = Pager.PageSize;
     int RecordCount = 0;
     ArrayList lst = BusinessFacade.sys_ApplicationsList(qp, out RecordCount);
     GridView1.DataSource = lst;
     GridView1.DataBind();
     this.Pager.RecordCount = RecordCount;
 }
开发者ID:janker007,项目名称:cocoshun,代码行数:12,代码来源:List.aspx.cs


示例16: OutJs

        private void OutJs()
        {
            int TotalRecord = 0;
            string strLink = "";
            int intCount = 0;
            QueryParam qp = new QueryParam();
            qp.Where = "Where G_Delete=0";
            qp.Orderfld = "G_Level,G_ShowOrder";
            qp.OrderType = 0;
            ArrayList lst = BusinessFacade.sys_GroupList(qp, out TotalRecord);
            StringBuilder strSB = new StringBuilder();

            strSB.Append("<script language='JavaScript'>\n");
            strSB.Append("Fold_id='';\n");

            strSB.Append("treeRoot = gFld(\"mainbody\", \"�����б�\", \"0\",\"0\")\n");

            foreach (sys_GroupTable x in lst)
            {
                intCount = intCount + 1;
                //strLink = "GroupList.aspx?GroupID=" + x.GroupID.ToString();
                strLink = x.GroupID.ToString();
                if (x.G_Level == 1)
                {
                    if (x.G_ChildCount == 0)
                    {

                        strSB.AppendFormat("insDoc(treeRoot,gLnk(\"mainbody\",\"{0}\",\"\",{1}))\n", Common.ReplaceJs(x.G_CName), strLink);
                    }
                    else
                    {
                        strSB.AppendFormat("N{0}=insFld(treeRoot,gFld(\"mainbody\",\"{1}\",\"\",{2}))\n", x.GroupID, Common.ReplaceJs(x.G_CName), strLink);
                    }
                }
                else
                {
                    if (x.G_ChildCount == 0)
                    {
                        strSB.AppendFormat("insDoc(N{0},gLnk(\"mainbody\",\"{1}\",\"\",{2}))\n", x.G_ParentID, Common.ReplaceJs(x.G_CName), strLink);
                    }
                    else
                    {
                        strSB.AppendFormat("N{0}=insFld(N{1},gFld(\"mainbody\",\"{2}\",\"\",{3}))\n", x.GroupID, x.G_ParentID, Common.ReplaceJs(x.G_CName), strLink);
                    }
                }

            }

            strSB.Append("	initializeDocument();\n");
            strSB.Append("</script>\n");
            ShowScript.Text = strSB.ToString();
        }
开发者ID:hezejiang,项目名称:EHR2,代码行数:52,代码来源:SelectGroup.aspx.cs


示例17: BindData

 private void BindData()
 {
     QueryParam qp = new QueryParam();
     
     qp.OrderType = 0;
     qp.PageIndex = AspNetPager1.CurrentPageIndex;
     qp.PageSize = AspNetPager1.PageSize;
     int RecordCount = 0;
     ArrayList lst = BusinessFacade.sys_RolesListUser(qp, out RecordCount);
     GridView1.DataSource = lst;
     GridView1.DataBind();
     this.AspNetPager1.RecordCount = RecordCount;
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:13,代码来源:RoleList.aspx.cs


示例18: DeleteCat

 private void DeleteCat(int GroupID)
 {
     //ɾ���ӷ����ɾ����ǰ����
     int RecordCount = 0;
     QueryParam qp = new QueryParam();
     qp.Where = string.Format("Where G_ParentID={0} and G_Delete = 0 ", GroupID);
     ArrayList lst = BusinessFacade.sys_GroupList(qp, out RecordCount);
     foreach (sys_GroupTable var in lst)
     {
         BusinessFacade.Update_Table_Fileds("sys_Group", "G_Delete=1", string.Format("GroupID={0}", var.GroupID));
         DeleteCat(var.GroupID);
     }
 }
开发者ID:hezejiang,项目名称:EHR,代码行数:13,代码来源:Edit.aspx.cs


示例19: BindDataList

 /// <summary>
 /// 绑定数据
 /// </summary>
 private void BindDataList()
 {
     QueryParam qp = new QueryParam();
     qp.Where = SearchTerms;
     qp.PageIndex = 1; //AspNetPager1.CurrentPageIndex;
     qp.PageSize = int.MaxValue;// AspNetPager1.PageSize;
     qp.Orderfld = "DeviceID,OrderID";
     qp.OrderType = 0;
     int RecordCount = 0;
     List<DeviceFunctionTemplateEntity> lst = BusinessFacadeShanliTech_HLD_Business.DeviceFunctionTemplateList(qp, out RecordCount);
     GridView1.DataSource = lst;
     GridView1.DataBind();
     //this.AspNetPager1.RecordCount = RecordCount;
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:17,代码来源:AddByFunctionTemplate.aspx.cs


示例20: BindDataList

 /// <summary>
 /// 绑定数据
 /// </summary>
 private void BindDataList()
 {
     QueryParam qp = new QueryParam();
     qp.Where = SearchTerms;
     qp.PageIndex = AspNetPager1.CurrentPageIndex;
     qp.PageSize = AspNetPager1.PageSize;
     qp.Orderfld = Orderfld;
     qp.OrderType = OrderType;
     int RecordCount = 0;
     List<T_VerificationRecordEntity> lst = BusinessFacadeShanlitech_Location.T_VerificationRecordList(qp, out RecordCount);
     GridView1.DataSource = lst;
     GridView1.DataBind();
     this.AspNetPager1.RecordCount = RecordCount;
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:17,代码来源:Default.aspx.cs



注:本文中的FrameWork.Components.QueryParam类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebControls.HeadMenuButtonItem类代码示例发布时间:2022-05-26
下一篇:
C# FrameWork.PacketOut类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap