Ejemplo n.º 1
0
 public void GetAllDlInfo()
 {
     try
     {
         DataTable dtAllRoad = Bll.Common.ChangColName(roadManager.GetList(" IsKeyRoad='0' and departId='" + Session["DEPARTID"].ToString() + "'"));
         StoreAllRoad.DataSource = dtAllRoad;
         StoreAllRoad.DataBind();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("KeyRoadManager.aspx-GetAllDlInfo", ex.Message + ";" + ex.StackTrace, "GetAllDlInfo has an exception");
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 根据传入部门编号 绑定道路
 /// </summary>
 /// <param name="departId"></param>
 /// <returns></returns>
 private void GetAllDlInfo(string departId)
 {
     try
     {
         DataTable dtAllRoad = Bll.Common.ChangColName(roadManager.GetList(" SSXQ='" + departId + "' and  IsKeyRoad='0' "));
         StoreAllRoad.DataSource = dtAllRoad;
         StoreAllRoad.DataBind();
         DataTable dtKeyRoad = Bll.Common.ChangColName(roadManager.GetList(" SSXQ='" + departId + "' and  IsKeyRoad='1' "));
         StoreKeyRoad.DataSource = dtKeyRoad;
         StoreKeyRoad.DataBind();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("KeyRoadManager.aspx-GetAllDlInfo", ex.Message + ";" + ex.StackTrace, "GetAllDlInfo has an exception");
     }
 }