Пример #1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            if (!Business.BsUser.UserOn())
            {
                Response.Write("<script>alert( 'Sua sessão expirou!' );top.login();</script>");
                Response.End();
            }
            else
            {
                usr = Business.BsUser.GetUserOn();
            }

            if (Request["idForm"] != null)
            {
                Session["idForm"] = Request["idForm"];
            }
            form = new Business.BsForm(Convert.ToInt32("0" + Session["idForm"]));

            if (Request["idFolder"] != null)
            {
                Session["idFolder"] = Request["idFolder"];
            }
            folder = new Business.BsFolder(Convert.ToInt32("0" + Session["idFolder"]));

            if (!Page.IsPostBack)
            {
                createForm(form);
            }
        }
Пример #2
0
 public BsItemForm(int id_, BsFolder folder_, BsForm form_, BsGenericItens gFields_, BsUser user_, BsGroups groups_)
 {
     _id      = id_;
     _folder  = folder_;
     _form    = form_;
     _gFields = gFields_;
     _user    = user_;
     _groups  = groups_;
 }
Пример #3
0
        private BsForm setObject(BsForm f_, DataRow dr_)
        {
            f_._id          = Convert.ToInt32(dr_["idForm"]);
            f_._name        = dr_["name"].ToString();
            f_.User.Id      = Convert.ToInt32(dr_["idUser"]);
            f_._anexo       = Convert.ToBoolean(dr_["anexo"]);
            f_._enabledDate = Convert.ToBoolean(dr_["enabledDate"]);
            f_._enabledUser = Convert.ToBoolean(dr_["enabledUser"]);

            return(f_);
        }
Пример #4
0
 public void Clear()
 {
     _id       = 0;
     _name     = "";
     _idParent = -1;
     _group    = null;
     _groups   = null;
     _form     = null;
     _forms    = null;
     _user     = null;
 }
Пример #5
0
 public BsFolder(int id_, string name_, int idParent_,
                 BsGroup group_,
                 BsGroups groups_,
                 BsForm form_,
                 BsForms forms_,
                 BsUser user_)
 {
     this._id       = id_;
     this._name     = name_;
     this._idParent = idParent_;
     this._group    = group_;
     this._groups   = groups_;
     this._form     = form_;
     this._forms    = forms_;
     this._user     = user_;
 }
Пример #6
0
 public BsField(int id_, BsForm form_)
 {
     _id   = id_;
     _form = form_;
 }
Пример #7
0
 public BsField(BsForm form_)
 {
     _form = form_;
 }
Пример #8
0
 public static int CountFieldsByForm(BsForm f)
 {
     return(Database.DaFields.CountFieldsByForm(f.Id));
 }
Пример #9
0
 public BsItemForm(int id_, BsForm form_)
 {
     _id   = id_;
     _form = form_;
 }