コード例 #1
0
        protected void BtnLoadAllocationLoadPermission_Click(object sender, EventArgs e)
        {
            try
            { LoadNotificationLoadPermissionManagement.CarTruckRelationDriverTruck(UCSmartCardsInquiry.UCGetTruckSmartCardNo(), UCSmartCardsInquiry.UCGetTruckDriverSmartCardNo()); }
            catch (Exception ex) {; }

            try
            {
                BtnLoadAllocationLoadPermission.Enabled = false;
                Int64 myCompanyCode = R2CoreTransportationAndLoadNotificationMClassTransportCompaniesManagement.GetNSSTransportCompnay(R2Core.UserManagement.R2CoreMClassLoginManagement.CurrentUserNSS).TCId;
                Int64 mynEstelamId  = UCViewerNSSLoadCapacitorLoad.UCGetNSSCurrent.nEstelamId;
                LoadNotificationLoadPermissionManagement.CarTruckRelationDriverTruck(UCSmartCardsInquiry.UCGetTruckSmartCardNo(), UCSmartCardsInquiry.UCGetTruckDriverSmartCardNo());
                Int64 myTurnId = LoadNotificationLoadPermissionManagement.TransportCompanyLoadCapacitorSedimentLoadAllocationAndPermisiion(myCompanyCode, mynEstelamId, UCSmartCardsInquiry.UCGetTruckSmartCardNo(), UCSmartCardsInquiry.UCGetTruckDriverSmartCardNo());
                PermissionPrinting.GetInformationforRemotePermissionPrinting(mynEstelamId, myTurnId, ref PPDS.StrExitDate, ref PPDS.StrExitTime, ref PPDS.nEstelamId, ref PPDS.TurnId, ref PPDS.CompanyName, ref PPDS.CarTruckLoaderTypeName, ref PPDS.pelak, ref PPDS.Serial, ref PPDS.DriverTruckFullNameFamily, ref PPDS.DriverTruckDrivingLicenseNo, ref PPDS.ProductName, ref PPDS.TargetCityName, ref PPDS.StrPriceSug, ref PPDS.StrDescription, ref PPDS.PermissionUserName, ref PPDS.OtherNote);
                PPDS.TurnId     = myTurnId.ToString();
                PPDS.nEstelamId = mynEstelamId.ToString();
            }
            catch (Exception ex)
            { LblMessage.Text = ex.Message; }
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         BtnViewLoads.Click += BtnViewLoads_ClickHandler;
         UCViewerLoadCapacitorLoads.UCLoadCapacitorLoadSelectedEvent += UCViewerLoadCapacitorLoads_UCLoadCapacitorLoadSelectedEventHandler;
         BtnLoadAllocationLoadPermission.Click += BtnLoadAllocationLoadPermission_Click;
         BtnRepeatPrint.Click += BtnRepeatPrint_Click;
         R2CoreTransportationAndLoadNotificationStandardTransportCompanyStructure NSSTransportCompany = R2CoreTransportationAndLoadNotificationMClassTransportCompaniesManagement.GetNSSTransportCompnay(R2Core.UserManagement.R2CoreMClassLoginManagement.CurrentUserNSS);
         TransportCompanyTitle.Text = "شرکت حمل و نقل " + NSSTransportCompany.TCTitle;
         UCViewerLoadCapacitorLoads.UCViewSedimentedLoadCapacitorLoads(NSSTransportCompany.TCId);
         UCViewerLoadCapacitorLoads.UCCaption = "لیست بار رسوب شده";
         LblMessage.Text = string.Empty;
     }
     catch (Exception ex)
     { LblMessage.Text = ex.Message; }
 }
コード例 #3
0
 protected void BtnViewLoads_ClickHandler(object sender, EventArgs e)
 {
     UCViewerLoadCapacitorLoads.UCViewSedimentedLoadCapacitorLoads(R2CoreTransportationAndLoadNotificationMClassTransportCompaniesManagement.GetNSSTransportCompnay(R2Core.UserManagement.R2CoreMClassLoginManagement.CurrentUserNSS).TCId);
 }
コード例 #4
0
 public R2CoreTransportationAndLoadNotificationStandardLoadCapacitorLoadStructure UCGetInformation(bool YourDirty)
 {
     try
     {
         if ((!YourDirty) & (LblnEstelamId.Text == string.Empty | LblnEstelamId.Text == "0"))
         {
             throw new Exception("بار انتخاب نشده است");
         }
         if (DropDownListGoods.SelectedIndex < 0)
         {
             throw new Exception("نوع بار انتخاب نشده است");
         }
         if (DropDownListTargets.SelectedIndex < 0)
         {
             throw new Exception("مقصد انتخاب نشده است");
         }
         if (DropDownListLoaderType.SelectedIndex < 0)
         {
             throw new Exception("بارگیر انتخاب نشده است");
         }
         if (TxtnCarNumKol.Text == string.Empty)
         {
             throw new Exception("تعداد بار نادرست است");
         }
         if (TxtTarrif.Text == string.Empty)
         {
             TxtTarrif.Text = "0";
         }
         R2CoreTransportationAndLoadNotificationStandardLoadCapacitorLoadStructure NSS = null;
         if (LblnEstelamId.Text != "0" & LblnEstelamId.Text != string.Empty)
         {
             NSS = new R2CoreTransportationAndLoadNotificationStandardLoadCapacitorLoadStructure(Convert.ToInt64(LblnEstelamId.Text), TxtStrBarName.Text, Convert.ToInt64(DropDownListTargets.Text.Split(' ')[0]), Convert.ToInt64(DropDownListGoods.Text.Split(' ')[0]), R2CoreTransportationAndLoadNotificationMClassTransportCompaniesManagement.GetNSSTransportCompnay(R2Core.UserManagement.R2CoreMClassLoginManagement.CurrentUserNSS).TCId, Convert.ToInt64(DropDownListLoaderType.Text.Split(' ')[0]), TxtAddress.Text, R2CoreMClassLoginManagement.CurrentUserNSS.UserId, Convert.ToInt64(TxtnCarNumKol.Text), Convert.ToInt64(TxtTarrif.Text.Replace(",", "")), TxtDescription.Text, _DateTime.GetCurrentDateShamsiFull(), _DateTime.GetCurrentTime(), Convert.ToInt64(TxtnCarNumKol.Text), R2CoreTransportationAndLoadNotificationLoadCapacitorLoadStatuses.Registered, 21310000, R2CoreTransportationAndLoadNotificationMClassAnnouncementHallsManagement.GetNSSAnnouncementHallByLoaderTypeId(Convert.ToInt64(DropDownListLoaderType.Text.Split(' ')[0])).AHId, R2CoreTransportationAndLoadNotificationMClassAnnouncementHallsManagement.GetNSSAnnouncementHallSubGroupByLoaderTypeId(Convert.ToInt64(DropDownListLoaderType.Text.Split(' ')[0])).AHSGId);
         }
         else
         {
             NSS = new R2CoreTransportationAndLoadNotificationStandardLoadCapacitorLoadStructure(0, TxtStrBarName.Text, Convert.ToInt64(DropDownListTargets.Text.Split(' ')[0]), Convert.ToInt64(DropDownListGoods.Text.Split(' ')[0]), R2CoreTransportationAndLoadNotificationMClassTransportCompaniesManagement.GetNSSTransportCompnay(R2Core.UserManagement.R2CoreMClassLoginManagement.CurrentUserNSS).TCId, Convert.ToInt64(DropDownListLoaderType.Text.Split(' ')[0]), TxtAddress.Text, R2CoreMClassLoginManagement.CurrentUserNSS.UserId, Convert.ToInt64(TxtnCarNumKol.Text), Convert.ToInt64(TxtTarrif.Text.Replace(",", "")), TxtDescription.Text, _DateTime.GetCurrentDateShamsiFull(), _DateTime.GetCurrentTime(), Convert.ToInt64(TxtnCarNumKol.Text), R2CoreTransportationAndLoadNotificationLoadCapacitorLoadStatuses.Registered, 21310000, R2CoreTransportationAndLoadNotificationMClassAnnouncementHallsManagement.GetNSSAnnouncementHallByLoaderTypeId(Convert.ToInt64(DropDownListLoaderType.Text.Split(' ')[0])).AHId, R2CoreTransportationAndLoadNotificationMClassAnnouncementHallsManagement.GetNSSAnnouncementHallSubGroupByLoaderTypeId(Convert.ToInt64(DropDownListLoaderType.Text.Split(' ')[0])).AHSGId);
         }
         return(NSS);
     }
     catch (Exception ex)
     { throw ex; }
 }
コード例 #5
0
 protected void BtnViewLoads_Click(object sender, EventArgs e)
 {
     try { UCViewerLoadCapacitorLoads.UCViewNotSedimentedLoadCapacitorLoads(R2CoreTransportationAndLoadNotificationMClassTransportCompaniesManagement.GetNSSTransportCompnay(R2Core.UserManagement.R2CoreMClassLoginManagement.CurrentUserNSS).TCId); }
     catch (Exception ex)
     { Response.Write("<script>alert('" + ex.Message + "')</script>"); }
 }
コード例 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         UCLoadCapacitorLoadManipulation.UCViewInformationCompleted  += _Handler;
         UCLoadCapacitorLoadManipulation.UCInformationChangedEvent   += UCLoadCapacitorLoadManipulation_UCInformationChangedEvent;
         UCViewerLoadCapacitorLoads.UCLoadCapacitorLoadSelectedEvent += UCLoadCapacitorLoadSelectedEvent;
         R2CoreTransportationAndLoadNotificationStandardTransportCompanyStructure NSSTransportCompany = R2CoreTransportationAndLoadNotificationMClassTransportCompaniesManagement.GetNSSTransportCompnay(R2Core.UserManagement.R2CoreMClassLoginManagement.CurrentUserNSS);
         TransportCompanyTitle.Text = "شرکت حمل و نقل " + NSSTransportCompany.TCTitle;
         UCViewerLoadCapacitorLoads.UCViewNotSedimentedLoadCapacitorLoads(NSSTransportCompany.TCId);
         if (!IsPostBack)
         {
             Session["CheckRefresh"] = Server.UrlDecode(System.DateTime.Now.ToString());
         }
         UCViewerLoadCapacitorLoads.UCCaption = "لیست بار موجود";
     }
     catch (Exception ex)
     { Response.Write("<script>alert('" + ex.Message + "')</script>"); }
 }