Exemple #1
0
 protected void GetFileFormats()
 {
     try
     {
         bool bNonCourierEDI = false;
         if (Params.ct == UserControlParams.CourierType.NonCourierEDI)
         {
             bNonCourierEDI = true;
         }
         List <ClsFileType> qFileTypes = SrvFileType.GetFileTypes(bNonCourierEDI);
         comboBxFileFormat.DataSource     = qFileTypes;
         comboBxFileFormat.DataTextField  = "FileType";
         comboBxFileFormat.DataValueField = "idFileType";
         comboBxFileFormat.DataBind();
     }
     catch (Exception ex)
     {
         long lnewID = 0;
         clsExceptionLogging error = new clsExceptionLogging()
         {
             Method = GetCurrentMethod(), ExceptionMsg = ex.Message.ToString(), ExceptionType = ex.GetType().Name.ToString(), ExceptionURL = context.Current.Request.Url.ToString(), ExceptionSource = ex.StackTrace.ToString(), CreatedOn = DateTime.Now, CreatedBy = Session["userName"].ToString()
         };
         SrvExceptionLogging.Insert(error, out lnewID);
     }
 }
 protected void GetCommunicationMethods()
 {
     try
     {
         List <ClsCommunicationMethod> qCommMeth = SrvCommunicationMethod.GetCommunicationMethods();
         comboxCommunicationMethod.DataSource     = qCommMeth;
         comboxCommunicationMethod.DataTextField  = "CommunicationMethod";
         comboxCommunicationMethod.DataValueField = "idCommunicationMethod";
         comboxCommunicationMethod.DataBind();
     }
     catch (Exception ex)
     {
         long lnewID = 0;
         clsExceptionLogging error = new clsExceptionLogging()
         {
             Method = GetCurrentMethod(), ExceptionMsg = ex.Message.ToString(), ExceptionType = ex.GetType().Name.ToString(), ExceptionURL = context.Current.Request.Url.ToString(), ExceptionSource = ex.StackTrace.ToString(), CreatedOn = DateTime.Now, CreatedBy = Session["userName"].ToString()
         };
         SrvExceptionLogging.Insert(error, out lnewID);
     }
     if (bool.Parse(ConfigurationManager.AppSettings["debug"]))
     {
         txtBoxMultiDebug2.Text +=
             "GetCommunicationMethods- " +
             RadPanelBar1.Items[0].Text + ": " +
             comboxCommunicationMethod.SelectedText.ToString() + ": " +
             comboxCommunicationMethod.SelectedValue.ToString() + "\r\n";
     }
 }
 protected void GetCommunicationMethods()
 {
     try
     {
         List <ClsCommunicationMethod> qCommMeth = SrvCommunicationMethod.GetCommunicationMethods();
         comboxCommunicationMethod.DataSource     = qCommMeth;
         comboxCommunicationMethod.DataTextField  = "CommunicationMethod";
         comboxCommunicationMethod.DataValueField = "idCommunicationMethod";
         comboxCommunicationMethod.DataBind();
     }
     catch (Exception ex)
     {
         long lnewID = 0;
         clsExceptionLogging error = new clsExceptionLogging()
         {
             Method = GetCurrentMethod(), ExceptionMsg = ex.Message.ToString(), ExceptionType = ex.GetType().Name.ToString(), ExceptionURL = context.Current.Request.Url.ToString(), ExceptionSource = ex.StackTrace.ToString(), CreatedOn = DateTime.Now, CreatedBy = Session["userName"].ToString()
         };
         SrvExceptionLogging.Insert(error, out lnewID);
     }
 }
 protected void GetStatusCodesNonCourier()
 {
     try
     {
         List <clsStatusCodeNonCourierEDI> qStatusCode = SrvStatusCodeNonCourierEDI.GetStatusCodes();
         comboxStatusCodes.DataSource     = qStatusCode;
         comboxStatusCodes.DataTextField  = "StatusCode";
         comboxStatusCodes.DataValueField = "idStatusCodesNonCourierEDI";
         comboxStatusCodes.DataBind();
     }
     catch (Exception ex)
     {
         long lnewID = 0;
         clsExceptionLogging error = new clsExceptionLogging()
         {
             Method = GetCurrentMethod(), ExceptionMsg = ex.Message.ToString(), ExceptionType = ex.GetType().Name.ToString(), ExceptionURL = context.Current.Request.Url.ToString(), ExceptionSource = ex.StackTrace.ToString(), CreatedOn = DateTime.Now, CreatedBy = Session["userName"].ToString()
         };
         SrvExceptionLogging.Insert(error, out lnewID);
     }
 }
 protected void GetTriggerMechanisms()
 {
     try
     {
         List <clsTriggerMechanism> qTrigMeth = SrvTriggerMechanism.GetTriggerMechanisms();
         comboxTriggerMechanism.DataSource     = qTrigMeth;
         comboxTriggerMechanism.DataTextField  = "TriggerMechanism";
         comboxTriggerMechanism.DataValueField = "idTriggerMechanism";
         comboxTriggerMechanism.DataBind();
     }
     catch (Exception ex)
     {
         long lnewID = 0;
         clsExceptionLogging error = new clsExceptionLogging()
         {
             Method = GetCurrentMethod(), ExceptionMsg = ex.Message.ToString(), ExceptionType = ex.GetType().Name.ToString(), ExceptionURL = context.Current.Request.Url.ToString(), ExceptionSource = ex.StackTrace.ToString(), CreatedOn = DateTime.Now, CreatedBy = Session["userName"].ToString()
         };
         SrvExceptionLogging.Insert(error, out lnewID);
     }
 }