Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
            }
        }