public BsForm(int id_, string name_, BsFolder folder_, BsItensForm itensForm_, BsUser user_, bool anexo_) { _id = id_; _name = name_; _folder = folder_; _itensForm = itensForm_; _user = user_; _anexo = anexo_; }
public static int[] ConvertToArrayItensForm(BsItensForm itf_) { int [] itensFormId = new int[itf_.Count]; for (int i = 0; i < itf_.Count; i++) { itensFormId[i] = itf_[i]._id; } return(itensFormId); }
private BsItensForm addObjectsList(DataTable dt_) { BsItensForm objects = new BsItensForm(); foreach (DataRow dr in dt_.Rows) { objects.Add(Convert.ToInt32(dr["idItemForm"]), setObject(new BsItemForm(), dr)); } return(objects); }
public void AddItenFormByGroup(BsItensForm f_, BsGroup g_) { if (g_.Id == 0) { throw new Exception("id group not found"); } if (f_.Count > 0) { Database.DaItensForms.DelItensFormByGroupId(g_.Id, f_[0].Form.Id); } for (int i = 0; i < f_.Count; i++) { Database.DaGroups.AddGroupItemForm(g_.Id, f_[i].Id, f_[i].Form.Id); } }