public int Insert() { if (!JPermission.CheckPermission("BusManagment.Personel.JPersonel.Insert")) { return(0); } JPersonelTable AT = new JPersonelTable(); AT.SetValueProperty(this); Code = AT.Insert(); if (Code > 0) { Nodes.DataTable.Merge(JPersonels.GetDataTable(Code)); } return(Code); }
public bool Update() { if (!JPermission.CheckPermission("BusManagment.Personel.JPersonel.Update")) { return(false); } JPersonelTable AT = new JPersonelTable(); AT.SetValueProperty(this); if (AT.Update()) { Nodes.Refreshdata(Nodes.CurrentNode, JPersonels.GetDataTable(Code).Rows[0]); return(true); } else { return(false); } }