/// <summary>
 /// Link Gove code click handler
 /// to allow edit this gov
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void lnkDelete_Click(object sender, EventArgs e)
 {
     LinkButton lnk = (LinkButton)sender;
     POLICE_STATION delpolice = new POLICE_STATION();
     delpolice.LoadByPrimaryKey(int.Parse(lnk.CommandArgument));
     delpolice.MarkAsDeleted();
     delpolice.Save();
     Filter();
 }
 /// <summary>
 /// Link Gove code click handler
 /// to allow edit this gov
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void lnkDelete_Click(object sender, EventArgs e)
 {
     LinkButton lnk = (LinkButton)sender;
     AREA area = new AREA();
     area.Where.FK_POLICECD.Value = int.Parse(lnk.CommandArgument);
     area.Where.FK_POLICECD.Operator = MyGeneration.dOOdads.WhereParameter.Operand.Equal;
     if (area.Query.Load())
     {
         MHOCommon.ShowMessage("لا يمكن حذف هذا القسم نظرا لما له من بيانات مرتبطة", this.Page);
     }
     else
     {
         POLICE_STATION delpolice = new POLICE_STATION();
         delpolice.LoadByPrimaryKey(int.Parse(lnk.CommandArgument));
         delpolice.MarkAsDeleted();
         delpolice.Save();
         Filter();
     }
 }