Exemplo n.º 1
0
 public static string DeleteCurrentRow(string RowGuid)
 {
     try
     {
         OGR_BILGI ogrBilgiObj = new OGR_BILGI();
         ogrBilgiObj.GUID = Convert.ToInt64(RowGuid);
         DbOperations.Delete(ogrBilgiObj);
         return("success");
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
Exemplo n.º 2
0
        private bool FillParameters()
        {
            try
            {
                OGR_BILGI OgrBilgiObj = new OGR_BILGI();
                OgrBilgiObj.BIRT_PLACE = txtDogumYeri.Value;
                if (!String.IsNullOrEmpty(slcSinif.Value))
                {
                    OgrBilgiObj.CLASS = Convert.ToInt16(slcSinif.Value);
                }
                OgrBilgiObj.DATE_OF_BIRTH = txtDogumTarihi.Value;
                OgrBilgiObj.BOLGE_ID      = Convert.ToInt64(slcMahalle.Value);
                OgrBilgiObj.NAME          = txtOgrAdi.Value;
                OgrBilgiObj.OGR_EMAIL     = txtEmail.Value;
                OgrBilgiObj.OGR_ID        = 100;
                if (!String.IsNullOrEmpty(txtOkulNo.Value))
                {
                    OgrBilgiObj.OGR_NO = Convert.ToInt32(txtOkulNo.Value);
                }
                OgrBilgiObj.PARENT_EMAIL = txtVeliEmail.Value;
                OgrBilgiObj.PARENT_NAME  = txtVeliAdi.Value;
                OgrBilgiObj.PARENT_PHONE = txtVeliTel.Value;
                OgrBilgiObj.PHONE        = txtOgrTel.Value;
                OgrBilgiObj.SCHOOL_NAME  = txtOkul.Value;
                OgrBilgiObj.SURNAME      = txtOgrSoyadi.Value;
                OgrBilgiObj.HOCA_GUID    = Convert.ToInt64(slcHocaBilgi.Value);
                OgrBilgiObj.DIGER        = txtDiger.Value;

                OOgrBilgi OgrBilgi = new OOgrBilgi(OgrBilgiObj);
                OgrBilgi.DoJob();
                return(true);
            }
            catch (Exception ex)
            {
                exErr = ex.Message;
                return(false);
            }
        }
Exemplo n.º 3
0
 public OOgrBilgi(OGR_BILGI ogrBilgiObj)
 {
     this.ogrBilgiObj = ogrBilgiObj;
 }