예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     xxgxBll = new XxgxBLL(this.WorkUser);
     if (!IsPostBack)
     {
         //数据绑定
         SearData(0);
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     apiFlow = Request.QueryString["apiFlow"].ToString();
     xxgxBll = new XxgxBLL(this.WorkUser);
     if (!IsPostBack)
     {
         SearchData();
     }
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     xxgxBll = new XxgxBLL(this.WorkUser);
     if (!IsPostBack)
     {
         WebCommon.DropDownListDataBind(this.DDL_xmsd, true);
         //数据绑定
         SearData(0);
     }
 }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            pkid = Request.QueryString["pkid"];

            xxgxBll = new XxgxBLL(new AppUser());
            if (!IsPostBack)
            {
                //数据绑定
                SearData(0);
            }
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            xxgxBll = new XxgxBLL(this.WorkUser);

            string tableName = Request.QueryString["tableName"];
            string pkid      = Request.QueryString["pkid"];
            string keyFields = Request.QueryString["keyFields"];

            DataTable dt = new DataTable();

            dt = xxgxBll.GetRecordItem(tableName, pkid);

            string msgTop = "";

            string msg = "";

            foreach (DataRow dr in dt.Rows)
            {
                for (int i = 0; i < dt.Columns.Count; i++)
                {
                    String columnName = dt.Columns[i].ColumnName;

                    if (!string.IsNullOrEmpty(keyFields) && string.Equals(columnName, keyFields, StringComparison.CurrentCultureIgnoreCase))
                    {
                        msgTop += "  ";
                        msgTop += columnName;
                        msgTop += " : ";
                        //msgTop += "<font color='blue'>";
                        msgTop += dr[i].ToString();
                        //msgTop += "</font>";
                        msgTop += "\r\n";
                    }

                    msg += "  ";
                    msg += columnName;
                    msg += " : ";
                    //msg += "<font color='blue'>";
                    msg += dr[i].ToString();
                    //msg += "</font>";
                    msg += "\r\n";
                }
            }

            this.TB_highlight.Text = msgTop;
            this.TB_detail.Text    = msg;
        }
예제 #6
0
        public string GetXxgx_Csjk(HttpContext context)
        {
            XxgxBLL BLL = new XxgxBLL(WorkUser);

            //string ssdq = context.Request.Params["ssdq"];
            //string xmdjrq = context.Request.Params["xmdjrq"];
            //string xmmc = context.Request.Params["xmmc"];
            StringBuilder str = new StringBuilder();

            try
            {
                DataTable dt = BLL.GetXxgx_Csjk();

                foreach (DataRow row in dt.Rows)
                {
                    str.Append("{");
                    str.AppendFormat("\"id\":\"{0}\"", row["ID"]);
                    str.AppendFormat(",\"value\":\"{0}\"", row["DataFlow"]);
                    str.AppendFormat(",\"name\":\"{0}\"", row["DataFlowName"]);
                    str.AppendFormat(",\"enable\":\"{0}\"", row["IsOk"] == DBNull.Value ? 0 : (Int32.Parse(row["IsOk"].ToString())) > 0 ? 1 : 0);
                    str.AppendFormat(",\"serviceUrl\":\"{0}\"", row["ServiceUrl"].ToString2());
                    str.Append("},");
                }
                if (str.Length == 0)
                {
                    return(String.Empty);
                }
                else
                {
                    return("[" + str.ToString().TrimEnd(',') + "]");
                }
            }
            catch (Exception ex)
            {
                str.Append(ex.Message);
            }
            return(str.ToString());
        }