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); } }
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_; }
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_); }
public void Clear() { _id = 0; _name = ""; _idParent = -1; _group = null; _groups = null; _form = null; _forms = null; _user = null; }
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_; }
public BsField(int id_, BsForm form_) { _id = id_; _form = form_; }
public BsField(BsForm form_) { _form = form_; }
public static int CountFieldsByForm(BsForm f) { return(Database.DaFields.CountFieldsByForm(f.Id)); }
public BsItemForm(int id_, BsForm form_) { _id = id_; _form = form_; }