示例#1
0
 protected void E116U2( )
 {
     /* Fileupload1_Uploadcomplete Routine */
     AV31GXV1 = 1;
     while (AV31GXV1 <= AV7UploadedFiles.Count)
     {
         AV8FileUploadData    = ((SdtFileUploadData)AV7UploadedFiles.Item(AV31GXV1));
         AV18tBaseFile.Source = "fileuploadbase\\baseimage.jpg";
         if (!AV18tBaseFile.Exists())
         {
             AV18tBaseFile.Create();
         }
         AV19tLargeHtml = context.FileToBase64(AV8FileUploadData.gxTpr_File);
         AV18tBaseFile.FromBase64(AV19tLargeHtml);
         AV18tBaseFile.Close();
         AV10tFileNewName = Guid.NewGuid( ).ToString() + "." + StringUtil.Trim(AV8FileUploadData.gxTpr_Extension);
         AV18tBaseFile.Copy("fileImage\\" + AV10tFileNewName);
         AV12BR_MedicalImaging.gxTpr_Br_medicalimaging_imagehtml = AV12BR_MedicalImaging.gxTpr_Br_medicalimaging_imagehtml + "<img src=\"fileImage/" + AV10tFileNewName + "\" width=\"700\" height=\"auto\" max-width=\"700\">";
         AV31GXV1 = (int)(AV31GXV1 + 1);
     }
     AV12BR_MedicalImaging.Save();
     context.CommitDataStores("br_sduploadimage", pr_default);
     CallWebObject(formatLink("br_uploadsuccessfully.aspx"));
     context.wjLocDisableFrm = 1;
     /*  Sending Event outputs  */
     context.httpAjaxContext.ajax_rsp_assign_sdt_attri("", false, "AV12BR_MedicalImaging", AV12BR_MedicalImaging);
 }
示例#2
0
 protected void E126U2( )
 {
     /* Start Routine */
     AV23cookie              = new GxHttpCookie();
     AV23cookie.Name         = "DAS_UserTInfo";
     AV23cookie.CurrentValue = StringUtil.Trim(AV21tCurrentCode);
     AV23cookie.Path         = "/";
     AV23cookie.HttpOnly     = false;
     AV24httpresponse.SetCookie(AV23cookie);
     AV23cookie          = new GxHttpCookie();
     AV23cookie.Name     = "ASP.NET_SessionId";
     AV23cookie.Path     = "/";
     AV23cookie.HttpOnly = false;
     AV24httpresponse.SetCookie(AV23cookie);
     GXt_dbconnection1 = new GxDataStore();
     new zxt_choosedatabase(context).execute(ref GXt_dbconnection1);
     AV12BR_MedicalImaging.Load(AV13iBR_MedicalImagingID);
 }