예제 #1
0
 /// <summary>
 /// get information about transporter 
 /// </summary>
 public void GetUserInfo()
 {
     if (_user.UserId != 0)
     {
         transporter = TMSLibrary.TransporterMethods.GetTransporterInfo(_user.UserId);
         if (transporter != null)
         {
             lblFullName.InnerText = transporter.FirstName + " " + transporter.LastName;
             lblMobile.InnerText = transporter.Mobile;
             lblEmail.InnerText = transporter.Email;
             lblAddress.InnerText = transporter.AddressLine;
             lblCity.InnerText = transporter.CityName;
             imgPhoto.Src = TMSLibrary.CONSTANT.Password.FolderPath + transporter.ProfilePhoto;
             lblComapanyName.InnerText = transporter.TransportName;
             lblServiceTaxNo.InnerText = transporter.ServiceTaxNo;
             lblPanNo.InnerText = transporter.PanNumber;
             lblWebsite.InnerText = transporter.Website;
             lblEstablishYear.InnerText = transporter.EstablishYear;
             lblPincode.InnerText = transporter.Pincode;
         }
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["userInfo"] == null)
         {
             staffbooking.Visible = true;
             FillddlVehicleType();
         }
         else
         {
             staffbooking.Visible = false;
             _transporter = TMSLibrary.TransporterMethods.GetTransporterInfo(((TMSLibrary.User)Session["userInfo"]).UserId);
             FillGrid();
             MakeGridResponsible();
             FillddlVehicleType();
         }
     }
 }