예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            B_Admin badmin = new B_Admin();

            if (!IsPostBack)
            {
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='DatalistProfile.aspx'>扩展功能</a></li><li><a href='DatalistProfile.aspx'>开发中心</a></li><li class='active'>添加插件</li>");
                if (!string.IsNullOrEmpty(Request["ID"]))
                {
                    int id = DataConvert.CLng(Request["ID"]);
                    model             = bll.SelReturnModel(id);
                    txtName.Text      = model.TagName;
                    txtTableName.Text = model.TableName.Replace("ZL_my_", "");
                    txtUnit.Text      = model.Unit;
                    txtIcon.Text      = model.Icon;
                    txtExplain.Text   = model.Explain;
                    txtRunNum.Text    = model.RunNum.ToString();
                    TxtUserID.Value   = model.UserID.ToString();
                    txtUserName.Text  = model.UserID.ToString();
                    txtBtnName.Text   = model.BtnName;
                    txtSqlUrl.Text    = model.SqlUrl;
                    txtRunTime.Text   = model.RunTime;
                }
            }
            if (Convert.ToInt32(Request["type"]) == 2)
            {
                this.CreateBtn.Text = "修改";
            }
        }
예제 #2
0
 public int insert(M_SQL model)
 {
     return(Sql.insert(strTableName, model.GetParameters(model), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
예제 #3
0
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool UpdateByID(M_SQL model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters(model)));
 }