コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     base_TypesOptions  = bworkFlow.GetTypeOptions();
     link_DBConnOptions = bdbConn.GetAllOptions();
     isAdd          = "1" == Request.QueryString["isadd"];
     flowID         = Request.QueryString["flowid"].IsGuid() && !isAdd ? Request.QueryString["flowid"] : Guid.NewGuid().ToString();
     defaultManager = RoadFlow.Platform.Users.PREFIX + RoadFlow.Platform.Users.CurrentUserID.ToString();
 }
コード例 #2
0
        public ActionResult Edit(FormCollection collection)
        {
            string name = string.Empty;

            ViewBag.Query1 = string.Format("&appid={0}&tabid={1}", Request.QueryString["appid"], Request.QueryString["tabid"]);
            string id    = Request.QueryString["id"];
            string type  = Request.QueryString["type"];
            var    model = new RoadFlow.Data.Model.QueryDesign();
            Guid   tid;

            if (id.IsGuid(out tid))
            {
                model = queryDesign.Get(tid);
            }

            ViewBag.Connopts  = conn.GetAllOptions(model.ConnectionID.ToString());
            ViewBag.Tableopts = getTableOps(model.ConnectionID, model.TableName);
            ViewBag.type      = type;

            return(View(model));
        }