public bool UpdateBodyRow(string number, string action, string action_t, int user) { bool ok = false; try { VerificationBodyProvider pr = new VerificationBodyProvider(); pr.UpdateAction(this.id, number, action, action_t, user); ok = true; } catch(Exception ex) { } return ok; }
public static List<VerificationBody> getVerificationBodyByVerificationId(int Verification_id) { List<VerificationBody> lst = new List<VerificationBody>(); try { VerificationBodyProvider pr = new VerificationBodyProvider(); DataSet ds = pr.getByVerificationId(Verification_id); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { VerificationBody o = new VerificationBody(); o.id = int.Parse(ds.Tables[0].Rows[i]["id_verificationbody"].ToString()); o.del = bool.Parse(ds.Tables[0].Rows[i]["del"].ToString()); o.guid = ds.Tables[0].Rows[i]["guid"].ToString(); o.Verification_id = Verification_id; o.number = ds.Tables[0].Rows[i]["order_number"].ToString(); o.found = bool.Parse(ds.Tables[0].Rows[i]["order_found"].ToString()); o.status = ds.Tables[0].Rows[i]["order_status"].ToString(); o.status_t = ds.Tables[0].Rows[i]["order_status_t"].ToString(); o.status_fact = ds.Tables[0].Rows[i]["order_status_fact"].ToString(); o.status_fact_t = ds.Tables[0].Rows[i]["order_status_fact_t"].ToString(); if (ds.Tables[0].Rows[i]["order_in"].ToString() != "") o.date_in = DateTime.Parse(ds.Tables[0].Rows[i]["order_in"].ToString()); if (ds.Tables[0].Rows[i]["order_out"].ToString() != "") o.date_out = DateTime.Parse(ds.Tables[0].Rows[i]["order_out"].ToString()); o.action = ds.Tables[0].Rows[i]["order_action"].ToString(); o.action_t = ds.Tables[0].Rows[i]["order_action_t"].ToString(); o.usr = new Photoland.Security.User.UserInfo(); o.usr.Id_user = int.Parse(ds.Tables[0].Rows[i]["order_user"].ToString()); o.exported = bool.Parse(ds.Tables[0].Rows[i]["exported"].ToString()); lst.Add(o); } } catch (Exception ex) { } return lst; }