示例#1
0
 public void Load( )
 {
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     RowToVars56(bcSYS_TenantUserRole, 0);
     ScanKeyStart1J56( );
     if (RcdFound56 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode = "UPD";
         Z370SYS_TenantUserRoleUserRoleID = (Guid)(A370SYS_TenantUserRoleUserRoleID);
     }
     ZM1J56(-7);
     OnLoadActions1J56( );
     AddRow1J56( );
     ScanKeyEnd1J56( );
     if (RcdFound56 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#2
0
 public void Check( )
 {
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     AnyError           = 0;
     context.GX_msglist.removeAllItems();
     RowToVars56(bcSYS_TenantUserRole, 0);
     nKeyPressed = 3;
     IsConfirmed = 0;
     GetKey1J56( );
     if (RcdFound56 == 1)
     {
         if (StringUtil.StrCmp(Gx_mode, "INS") == 0)
         {
             GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (A370SYS_TenantUserRoleUserRoleID != Z370SYS_TenantUserRoleUserRoleID)
         {
             A370SYS_TenantUserRoleUserRoleID = (Guid)(Z370SYS_TenantUserRoleUserRoleID);
             GX_msglist.addItem(context.GetMessage("GXM_getbeforeupd", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (StringUtil.StrCmp(Gx_mode, "DLT") == 0)
         {
             delete_Check( );
         }
         else
         {
             Gx_mode = "UPD";
             update_Check( );
         }
     }
     else
     {
         if (A370SYS_TenantUserRoleUserRoleID != Z370SYS_TenantUserRoleUserRoleID)
         {
             Gx_mode = "INS";
             insert_Check( );
         }
         else
         {
             if (StringUtil.StrCmp(Gx_mode, "UPD") == 0)
             {
                 GX_msglist.addItem(context.GetMessage("GXM_recdeleted", ""), 1, "");
                 AnyError = 1;
             }
             else
             {
                 Gx_mode = "INS";
                 insert_Check( );
             }
         }
     }
     pr_datastore1.close(1);
     context.RollbackDataStores("sys_tenantuserrole_bc", pr_default);
     VarsToRow56(bcSYS_TenantUserRole);
     context.GX_msglist = BackMsgLst;
     return;
 }
示例#3
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     new GeneXus.Programs.wwpbaseobjects.loadwwpcontext(context).execute(out AV12WWPContext);
     AV17BCSYS_Log.gxTpr_Sys_logcreator    = AV12WWPContext.gxTpr_Userguid;
     AV17BCSYS_Log.gxTpr_Sys_logcreatetime = DateTimeUtil.ServerNow(context, pr_default);
     GXt_char1 = "";
     new zbr_getcurrenttcode(context).execute(out GXt_char1);
     AV17BCSYS_Log.gxTpr_Sys_logtenantcode = GXt_char1;
     AV17BCSYS_Log.gxTpr_Sys_logmodulecode = "Data Management";
     AV17BCSYS_Log.gxTpr_Sys_logclientip   = AV12WWPContext.gxTpr_Clientip;
     if (AV14tOperateType == 1)
     {
         AV17BCSYS_Log.gxTpr_Sys_logtitle   = gxdomaindm_logoperatetype.getDescription(context, AV11iXT_LogTargetOperate) + StringUtil.Trim(AV16iXT_LogTargetSonModule) + ":" + StringUtil.Trim(AV15iXT_LogSonTarget);
         AV17BCSYS_Log.gxTpr_Sys_loglogtype = AV11iXT_LogTargetOperate;
         AV17BCSYS_Log.gxTpr_Sys_logcontent = "对" + StringUtil.Trim(AV10iXT_LogTargetModule) + StringUtil.Trim(AV9iXT_LogTarget) + "中" + StringUtil.Trim(AV16iXT_LogTargetSonModule) + "的" + StringUtil.Trim(AV15iXT_LogSonTarget) + "进行了" + gxdomaindm_logoperatetype.getDescription(context, AV11iXT_LogTargetOperate) + "操作";
     }
     AV17BCSYS_Log.Save();
     if (AV17BCSYS_Log.Fail())
     {
         GX_msglist.addItem("日志保存失败");
     }
     else
     {
         context.CommitDataStores("zutil_recordsonlog", pr_default);
     }
     this.cleanup();
 }
示例#4
0
 public void LoadKey(Object[] obj)
 {
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     A370SYS_TenantUserRoleUserRoleID = (Guid)((Guid)getParm(obj, 0));
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     InitializeNonKey1J56( );
     ScanKeyStart1J56( );
     if (RcdFound56 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode = "UPD";
         Z370SYS_TenantUserRoleUserRoleID = (Guid)(A370SYS_TenantUserRoleUserRoleID);
     }
     ZM1J56(-7);
     OnLoadActions1J56( );
     AddRow1J56( );
     ScanKeyEnd1J56( );
     if (RcdFound56 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#5
0
 public void Check( )
 {
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     AnyError           = 0;
     context.GX_msglist.removeAllItems();
     RowToVars55(bcBAS_DataPackage, 0);
     nKeyPressed = 3;
     IsConfirmed = 0;
     GetKey1I55( );
     if (RcdFound55 == 1)
     {
         if (StringUtil.StrCmp(Gx_mode, "INS") == 0)
         {
             GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (StringUtil.StrCmp(A366DataPackage, Z366DataPackage) != 0)
         {
             A366DataPackage = Z366DataPackage;
             GX_msglist.addItem(context.GetMessage("GXM_getbeforeupd", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (StringUtil.StrCmp(Gx_mode, "DLT") == 0)
         {
             delete_Check( );
         }
         else
         {
             Gx_mode = "UPD";
             update_Check( );
         }
     }
     else
     {
         if (StringUtil.StrCmp(A366DataPackage, Z366DataPackage) != 0)
         {
             Gx_mode = "INS";
             insert_Check( );
         }
         else
         {
             if (StringUtil.StrCmp(Gx_mode, "UPD") == 0)
             {
                 GX_msglist.addItem(context.GetMessage("GXM_recdeleted", ""), 1, "");
                 AnyError = 1;
             }
             else
             {
                 Gx_mode = "INS";
                 insert_Check( );
             }
         }
     }
     pr_datastore1.close(1);
     context.RollbackDataStores("bas_datapackage_bc", pr_default);
     VarsToRow55(bcBAS_DataPackage);
     context.GX_msglist = BackMsgLst;
     return;
 }
示例#6
0
 public void Load( )
 {
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     RowToVars55(bcBAS_DataPackage, 0);
     ScanKeyStart1I55( );
     if (RcdFound55 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode         = "UPD";
         Z366DataPackage = A366DataPackage;
     }
     ZM1I55(-1);
     OnLoadActions1I55( );
     AddRow1I55( );
     ScanKeyEnd1I55( );
     if (RcdFound55 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#7
0
 public void Load( )
 {
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     RowToVars8(bcwwpbaseobjects_UserCustomizations, 0);
     ScanKeyStart078( );
     if (RcdFound8 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode = "UPD";
         Z16UserCustomizationsId  = A16UserCustomizationsId;
         Z17UserCustomizationsKey = A17UserCustomizationsKey;
     }
     ZM078(-1);
     OnLoadActions078( );
     AddRow078( );
     ScanKeyEnd078( );
     if (RcdFound8 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#8
0
 protected void E111H2( )
 {
     /* 'Rest' Routine */
     AV8Resultado = AV9wscalcularportavehiculosroro_services.execute("25000", "45");
     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV8Resultado", AV8Resultado);
     GX_msglist.addItem(context.GetMessage("respuesta:", "") + AV8Resultado);
 }
示例#9
0
 public void LoadKey(Object[] obj)
 {
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     A357SerialKey      = (String)getParm(obj, 0);
     AnyError           = 0;
     context.GX_msglist.removeAllItems();
     InitializeNonKey1744( );
     ScanKeyStart1744( );
     if (RcdFound44 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode       = "UPD";
         Z357SerialKey = A357SerialKey;
     }
     ZM1744(-1);
     OnLoadActions1744( );
     AddRow1744( );
     ScanKeyEnd1744( );
     if (RcdFound44 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#10
0
 public void Check( )
 {
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     AnyError           = 0;
     context.GX_msglist.removeAllItems();
     RowToVars5(bcwwpbaseobjects_SecRole, 0);
     nKeyPressed = 3;
     IsConfirmed = 0;
     GetKey045( );
     if (RcdFound5 == 1)
     {
         if (StringUtil.StrCmp(Gx_mode, "INS") == 0)
         {
             GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (A4SecRoleId != Z4SecRoleId)
         {
             A4SecRoleId = Z4SecRoleId;
             GX_msglist.addItem(context.GetMessage("GXM_getbeforeupd", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (StringUtil.StrCmp(Gx_mode, "DLT") == 0)
         {
             delete_Check( );
         }
         else
         {
             Gx_mode = "UPD";
             update_Check( );
         }
     }
     else
     {
         if (A4SecRoleId != Z4SecRoleId)
         {
             Gx_mode = "INS";
             insert_Check( );
         }
         else
         {
             if (StringUtil.StrCmp(Gx_mode, "UPD") == 0)
             {
                 GX_msglist.addItem(context.GetMessage("GXM_recdeleted", ""), 1, "");
                 AnyError = 1;
             }
             else
             {
                 Gx_mode = "INS";
                 insert_Check( );
             }
         }
     }
     pr_default.close(1);
     context.RollbackDataStores("wwpbaseobjects.secrole_bc", pr_default);
     VarsToRow5(bcwwpbaseobjects_SecRole);
     context.GX_msglist = BackMsgLst;
     return;
 }
示例#11
0
 public void Load( )
 {
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     RowToVars44(bcSYS_SerialNumber, 0);
     ScanKeyStart1744( );
     if (RcdFound44 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode       = "UPD";
         Z357SerialKey = A357SerialKey;
     }
     ZM1744(-1);
     OnLoadActions1744( );
     AddRow1744( );
     ScanKeyEnd1744( );
     if (RcdFound44 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#12
0
 public void LoadKey(Object[] obj)
 {
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     A4SecRoleId        = (short)getParm(obj, 0);
     AnyError           = 0;
     context.GX_msglist.removeAllItems();
     InitializeNonKey045( );
     ScanKeyStart045( );
     if (RcdFound5 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode     = "UPD";
         Z4SecRoleId = A4SecRoleId;
     }
     ZM045(-2);
     OnLoadActions045( );
     AddRow045( );
     ScanKeyEnd045( );
     if (RcdFound5 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#13
0
 public void Load( )
 {
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     RowToVars5(bcwwpbaseobjects_SecRole, 0);
     ScanKeyStart045( );
     if (RcdFound5 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode     = "UPD";
         Z4SecRoleId = A4SecRoleId;
     }
     ZM045(-2);
     OnLoadActions045( );
     AddRow045( );
     ScanKeyEnd045( );
     if (RcdFound5 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#14
0
 public void LoadKey(Object[] obj)
 {
     BackMsgLst               = context.GX_msglist;
     context.GX_msglist       = LclMsgLst;
     A16UserCustomizationsId  = (int)getParm(obj, 0);
     A17UserCustomizationsKey = (String)getParm(obj, 1);
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     InitializeNonKey078( );
     ScanKeyStart078( );
     if (RcdFound8 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode = "UPD";
         Z16UserCustomizationsId  = A16UserCustomizationsId;
         Z17UserCustomizationsKey = A17UserCustomizationsKey;
     }
     ZM078(-1);
     OnLoadActions078( );
     AddRow078( );
     ScanKeyEnd078( );
     if (RcdFound8 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#15
0
 protected void OnDeleteControls045( )
 {
     standaloneModal( );
     if (AnyError == 0)
     {
         /* Delete mode formulas */
         AV17Pgmname = "WWPBaseObjects.SecRole_BC";
     }
     if (AnyError == 0)
     {
         /* Using cursor BC00049 */
         pr_default.execute(7, new Object[] { A4SecRoleId });
         if ((pr_default.getStatus(7) != 101))
         {
             GX_msglist.addItem(context.GetMessage("GXM_del", new   object[]  { "Sec User Role" }), "CannotDeleteReferencedRecord", 1, "");
             AnyError = 1;
         }
         pr_default.close(7);
         /* Using cursor BC000410 */
         pr_default.execute(8, new Object[] { A4SecRoleId });
         if ((pr_default.getStatus(8) != 101))
         {
             GX_msglist.addItem(context.GetMessage("GXM_del", new   object[]  { "Functionality Role" }), "CannotDeleteReferencedRecord", 1, "");
             AnyError = 1;
         }
         pr_default.close(8);
     }
 }
示例#16
0
 public void Load( )
 {
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     RowToVars61(bcSYS_RolePermission, 0);
     ScanKeyStart1G61( );
     if (RcdFound61 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode = "UPD";
         Z444SYS_RolePermissionRoleID         = (Guid)(A444SYS_RolePermissionRoleID);
         Z445SYS_RolePermissionPermissionCode = A445SYS_RolePermissionPermissionCode;
     }
     ZM1G61(-3);
     OnLoadActions1G61( );
     AddRow1G61( );
     ScanKeyEnd1G61( );
     if (RcdFound61 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#17
0
 public void Check( )
 {
     BackMsgLst         = context.GX_msglist;
     context.GX_msglist = LclMsgLst;
     AnyError           = 0;
     context.GX_msglist.removeAllItems();
     RowToVars44(bcSYS_SerialNumber, 0);
     nKeyPressed = 3;
     IsConfirmed = 0;
     GetKey1744( );
     if (RcdFound44 == 1)
     {
         if (StringUtil.StrCmp(Gx_mode, "INS") == 0)
         {
             GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (StringUtil.StrCmp(A357SerialKey, Z357SerialKey) != 0)
         {
             A357SerialKey = Z357SerialKey;
             GX_msglist.addItem(context.GetMessage("GXM_getbeforeupd", ""), "DuplicatePrimaryKey", 1, "");
             AnyError = 1;
         }
         else if (StringUtil.StrCmp(Gx_mode, "DLT") == 0)
         {
             delete_Check( );
         }
         else
         {
             Gx_mode = "UPD";
             update_Check( );
         }
     }
     else
     {
         if (StringUtil.StrCmp(A357SerialKey, Z357SerialKey) != 0)
         {
             Gx_mode = "INS";
             insert_Check( );
         }
         else
         {
             if (StringUtil.StrCmp(Gx_mode, "UPD") == 0)
             {
                 GX_msglist.addItem(context.GetMessage("GXM_recdeleted", ""), 1, "");
                 AnyError = 1;
             }
             else
             {
                 Gx_mode = "INS";
                 insert_Check( );
             }
         }
     }
     pr_datastore1.close(1);
     context.RollbackDataStores("sys_serialnumber_bc", pr_default);
     VarsToRow44(bcSYS_SerialNumber);
     context.GX_msglist = BackMsgLst;
     return;
 }
示例#18
0
 public void LoadKey(Object[] obj)
 {
     BackMsgLst                           = context.GX_msglist;
     context.GX_msglist                   = LclMsgLst;
     A444SYS_RolePermissionRoleID         = (Guid)((Guid)getParm(obj, 0));
     A445SYS_RolePermissionPermissionCode = (String)getParm(obj, 1);
     AnyError = 0;
     context.GX_msglist.removeAllItems();
     InitializeNonKey1G61( );
     ScanKeyStart1G61( );
     if (RcdFound61 == 0)
     {
         Gx_mode = "INS";
     }
     else
     {
         Gx_mode = "UPD";
         Z444SYS_RolePermissionRoleID         = (Guid)(A444SYS_RolePermissionRoleID);
         Z445SYS_RolePermissionPermissionCode = A445SYS_RolePermissionPermissionCode;
     }
     ZM1G61(-3);
     OnLoadActions1G61( );
     AddRow1G61( );
     ScanKeyEnd1G61( );
     if (RcdFound61 == 0)
     {
         GX_msglist.addItem(context.GetMessage("GXM_keynfound", ""), "PrimaryKeyNotFound", 1, "");
         AnyError = 1;
     }
     context.GX_msglist = BackMsgLst;
 }
示例#19
0
 protected void CheckExtendedTable045( )
 {
     standaloneModal( );
     AV17Pgmname = "WWPBaseObjects.SecRole_BC";
     if (String.IsNullOrEmpty(StringUtil.RTrim(A13SecRoleName)))
     {
         GX_msglist.addItem("角色名称是必须填写的。", 1, "");
         AnyError = 1;
     }
 }
示例#20
0
 protected void Insert1N63( )
 {
     BeforeValidate1N63( );
     if (AnyError == 0)
     {
         CheckExtendedTable1N63( );
     }
     if (AnyError == 0)
     {
         ZM1N63(0);
         CheckOptimisticConcurrency1N63( );
         if (AnyError == 0)
         {
             AfterConfirm1N63( );
             if (AnyError == 0)
             {
                 BeforeInsert1N63( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC001N8 */
                     pr_default.execute(5, new Object[] { A85BR_Information_ID, A366DataPackage });
                     pr_default.close(5);
                     dsDefault.SmartCacheProvider.SetUpdated("BR_PatientReEntity");
                     if ((pr_default.getStatus(5) == 1))
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
                         AnyError = 1;
                     }
                     if (AnyError == 0)
                     {
                         /* Start of After( Insert) rules */
                         /* End of After( Insert) rules */
                         if (AnyError == 0)
                         {
                             /* Save values for previous() function. */
                             GX_msglist.addItem(context.GetMessage("GXM_sucadded", ""), "SuccessfullyAdded", 0, "", true);
                         }
                     }
                 }
                 else
                 {
                     GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                     AnyError = 1;
                 }
             }
         }
         else
         {
             Load1N63( );
         }
         EndLevel1N63( );
     }
     CloseExtendedTableCursors1N63( );
 }
示例#21
0
 protected void Insert022( )
 {
     BeforeValidate022( );
     if (AnyError == 0)
     {
         CheckExtendedTable022( );
     }
     if (AnyError == 0)
     {
         ZM022(0);
         CheckOptimisticConcurrency022( );
         if (AnyError == 0)
         {
             AfterConfirm022( );
             if (AnyError == 0)
             {
                 BeforeInsert022( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC00028 */
                     pr_default.execute(6, new Object[] { A1SecFunctionalityId, A4SecRoleId });
                     pr_default.close(6);
                     dsDefault.SmartCacheProvider.SetUpdated("SecFunctionalityRole");
                     if ((pr_default.getStatus(6) == 1))
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
                         AnyError = 1;
                     }
                     if (AnyError == 0)
                     {
                         /* Start of After( Insert) rules */
                         /* End of After( Insert) rules */
                         if (AnyError == 0)
                         {
                             /* Save values for previous() function. */
                             GX_msglist.addItem(context.GetMessage("GXM_sucadded", ""), "SuccessfullyAdded", 0, "", true);
                         }
                     }
                 }
                 else
                 {
                     GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                     AnyError = 1;
                 }
             }
         }
         else
         {
             Load022( );
         }
         EndLevel022( );
     }
     CloseExtendedTableCursors022( );
 }
示例#22
0
 protected void Insert1643( )
 {
     BeforeValidate1643( );
     if (AnyError == 0)
     {
         CheckExtendedTable1643( );
     }
     if (AnyError == 0)
     {
         ZM1643(0);
         CheckOptimisticConcurrency1643( );
         if (AnyError == 0)
         {
             AfterConfirm1643( );
             if (AnyError == 0)
             {
                 BeforeInsert1643( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC00168 */
                     pr_datastore1.execute(6, new Object[] { A359UserID, A361RoleID });
                     pr_datastore1.close(6);
                     dsDataStore1.SmartCacheProvider.SetUpdated("SYS_USERROLE");
                     if ((pr_datastore1.getStatus(6) == 1))
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
                         AnyError = 1;
                     }
                     if (AnyError == 0)
                     {
                         /* Start of After( Insert) rules */
                         /* End of After( Insert) rules */
                         if (AnyError == 0)
                         {
                             /* Save values for previous() function. */
                             GX_msglist.addItem(context.GetMessage("GXM_sucadded", ""), "SuccessfullyAdded", 0, "", true);
                         }
                     }
                 }
                 else
                 {
                     GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                     AnyError = 1;
                 }
             }
         }
         else
         {
             Load1643( );
         }
         EndLevel1643( );
     }
     CloseExtendedTableCursors1643( );
 }
示例#23
0
 protected void Insert078( )
 {
     BeforeValidate078( );
     if (AnyError == 0)
     {
         CheckExtendedTable078( );
     }
     if (AnyError == 0)
     {
         ZM078(0);
         CheckOptimisticConcurrency078( );
         if (AnyError == 0)
         {
             AfterConfirm078( );
             if (AnyError == 0)
             {
                 BeforeInsert078( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC00076 */
                     pr_default.execute(4, new Object[] { A16UserCustomizationsId, A17UserCustomizationsKey, A18UserCustomizationsValue });
                     pr_default.close(4);
                     dsDefault.SmartCacheProvider.SetUpdated("UserCustomizations");
                     if ((pr_default.getStatus(4) == 1))
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "");
                         AnyError = 1;
                     }
                     if (AnyError == 0)
                     {
                         /* Start of After( Insert) rules */
                         /* End of After( Insert) rules */
                         if (AnyError == 0)
                         {
                             /* Save values for previous() function. */
                             GX_msglist.addItem(context.GetMessage("GXM_sucadded", ""), "SuccessfullyAdded", 0, "", true);
                         }
                     }
                 }
                 else
                 {
                     GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                     AnyError = 1;
                 }
             }
         }
         else
         {
             Load078( );
         }
         EndLevel078( );
     }
     CloseExtendedTableCursors078( );
 }
示例#24
0
 protected void E126S2( )
 {
     /* 'save' Routine */
     new zutil_checksession(context).execute(out AV10tCheckFlag);
     if (!AV10tCheckFlag)
     {
         AV7BR_MedicalImaging.gxTpr_Br_medicalimaging_imagehtml = AV5vFckEditor;
         AV7BR_MedicalImaging.Save();
         context.CommitDataStores("br_medicalshowupoloadimage", pr_default);
         GX_msglist.addItem("保存成功");
     }
     /*  Sending Event outputs  */
     context.httpAjaxContext.ajax_rsp_assign_sdt_attri(sPrefix, false, "AV7BR_MedicalImaging", AV7BR_MedicalImaging);
 }
示例#25
0
 protected void Update045( )
 {
     BeforeValidate045( );
     if (AnyError == 0)
     {
         CheckExtendedTable045( );
     }
     if (AnyError == 0)
     {
         CheckOptimisticConcurrency045( );
         if (AnyError == 0)
         {
             AfterConfirm045( );
             if (AnyError == 0)
             {
                 BeforeUpdate045( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC00047 */
                     pr_default.execute(5, new Object[] { A13SecRoleName, A12SecRoleDescription, A4SecRoleId });
                     pr_default.close(5);
                     dsDefault.SmartCacheProvider.SetUpdated("SecRole");
                     if ((pr_default.getStatus(5) == 103))
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_lock", new   object[]  { "SecRole" }), "RecordIsLocked", 1, "");
                         AnyError = 1;
                     }
                     DeferredUpdate045( );
                     if (AnyError == 0)
                     {
                         /* Start of After( update) rules */
                         /* End of After( update) rules */
                         if (AnyError == 0)
                         {
                             getByPrimaryKey( );
                             GX_msglist.addItem(context.GetMessage("GXM_sucupdated", ""), "SuccessfullyUpdated", 0, "", true);
                         }
                     }
                     else
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                         AnyError = 1;
                     }
                 }
             }
         }
         EndLevel045( );
     }
     CloseExtendedTableCursors045( );
 }
示例#26
0
 protected void Update1J56( )
 {
     BeforeValidate1J56( );
     if (AnyError == 0)
     {
         CheckExtendedTable1J56( );
     }
     if (AnyError == 0)
     {
         CheckOptimisticConcurrency1J56( );
         if (AnyError == 0)
         {
             AfterConfirm1J56( );
             if (AnyError == 0)
             {
                 BeforeUpdate1J56( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC001J7 */
                     pr_datastore1.execute(5, new Object[] { A434SYS_TenantUserRoleRoleID, A433SYS_TenantUserRoleUserID, A441SYS_TenantUserRoleTenantCode, A370SYS_TenantUserRoleUserRoleID });
                     pr_datastore1.close(5);
                     dsDataStore1.SmartCacheProvider.SetUpdated("SYS_TENANTUSERROLE");
                     if ((pr_datastore1.getStatus(5) == 103))
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_lock", new   object[]  { "SYS_TENANTUSERROLE" }), "RecordIsLocked", 1, "");
                         AnyError = 1;
                     }
                     DeferredUpdate1J56( );
                     if (AnyError == 0)
                     {
                         /* Start of After( update) rules */
                         /* End of After( update) rules */
                         if (AnyError == 0)
                         {
                             getByPrimaryKey( );
                             GX_msglist.addItem(context.GetMessage("GXM_sucupdated", ""), "SuccessfullyUpdated", 0, "", true);
                         }
                     }
                     else
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                         AnyError = 1;
                     }
                 }
             }
         }
         EndLevel1J56( );
     }
     CloseExtendedTableCursors1J56( );
 }
示例#27
0
 protected void Update1744( )
 {
     BeforeValidate1744( );
     if (AnyError == 0)
     {
         CheckExtendedTable1744( );
     }
     if (AnyError == 0)
     {
         CheckOptimisticConcurrency1744( );
         if (AnyError == 0)
         {
             AfterConfirm1744( );
             if (AnyError == 0)
             {
                 BeforeUpdate1744( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC00177 */
                     pr_datastore1.execute(5, new Object[] { A415CurrentValue, A357SerialKey });
                     pr_datastore1.close(5);
                     dsDataStore1.SmartCacheProvider.SetUpdated("SYS_SERIALNUMBER");
                     if ((pr_datastore1.getStatus(5) == 103))
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_lock", new   object[]  { "SYS_SERIALNUMBER" }), "RecordIsLocked", 1, "");
                         AnyError = 1;
                     }
                     DeferredUpdate1744( );
                     if (AnyError == 0)
                     {
                         /* Start of After( update) rules */
                         /* End of After( update) rules */
                         if (AnyError == 0)
                         {
                             getByPrimaryKey( );
                             GX_msglist.addItem(context.GetMessage("GXM_sucupdated", ""), "SuccessfullyUpdated", 0, "", true);
                         }
                     }
                     else
                     {
                         GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                         AnyError = 1;
                     }
                 }
             }
         }
         EndLevel1744( );
     }
     CloseExtendedTableCursors1744( );
 }
示例#28
0
 protected void Insert045( )
 {
     BeforeValidate045( );
     if (AnyError == 0)
     {
         CheckExtendedTable045( );
     }
     if (AnyError == 0)
     {
         ZM045(0);
         CheckOptimisticConcurrency045( );
         if (AnyError == 0)
         {
             AfterConfirm045( );
             if (AnyError == 0)
             {
                 BeforeInsert045( );
                 if (AnyError == 0)
                 {
                     /* Using cursor BC00046 */
                     pr_default.execute(4, new Object[] { A13SecRoleName, A12SecRoleDescription });
                     A4SecRoleId = BC00046_A4SecRoleId[0];
                     pr_default.close(4);
                     dsDefault.SmartCacheProvider.SetUpdated("SecRole");
                     if (AnyError == 0)
                     {
                         /* Start of After( Insert) rules */
                         /* End of After( Insert) rules */
                         if (AnyError == 0)
                         {
                             /* Save values for previous() function. */
                             GX_msglist.addItem(context.GetMessage("GXM_sucadded", ""), "SuccessfullyAdded", 0, "", true);
                         }
                     }
                 }
                 else
                 {
                     GX_msglist.addItem(context.GetMessage("GXM_unexp", ""), 1, "");
                     AnyError = 1;
                 }
             }
         }
         else
         {
             Load045( );
         }
         EndLevel045( );
     }
     CloseExtendedTableCursors045( );
 }
示例#29
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     if (AV8iSecUserId == 1)
     {
         GX_msglist.addItem("超级管理员不可删除");
     }
     else
     {
         /* Optimized DELETE. */
         /* Using cursor P00262 */
         pr_default.execute(0, new Object[] { AV8iSecUserId });
         pr_default.close(0);
         dsDefault.SmartCacheProvider.SetUpdated("JC_ProviderSecUser");
         /* End optimized DELETE. */
         /* Optimized DELETE. */
         /* Using cursor P00263 */
         pr_default.execute(1, new Object[] { AV8iSecUserId });
         pr_default.close(1);
         dsDefault.SmartCacheProvider.SetUpdated("SecUserRole");
         /* End optimized DELETE. */
         /* Using cursor P00264 */
         pr_default.execute(2, new Object[] { AV8iSecUserId });
         while ((pr_default.getStatus(2) != 101))
         {
             A6SecUserId     = P00264_A6SecUserId[0];
             A14SecUserName  = P00264_A14SecUserName[0];
             AV9tSecUserName = A14SecUserName;
             /* Using cursor P00265 */
             pr_default.execute(3, new Object[] { A6SecUserId });
             pr_default.close(3);
             dsDefault.SmartCacheProvider.SetUpdated("SecUser");
             new zutil_recordlog(context).execute(AV9tSecUserName, "用户信息", "Delete", 1);
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
             /* Exiting from a For First loop. */
             if (true)
             {
                 break;
             }
         }
         pr_default.close(2);
     }
     this.cleanup();
 }
示例#30
0
 protected void E120C2( )
 {
     /* Enter Routine */
     AV8FilterName = StringUtil.Trim(AV8FilterName);
     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV8FilterName", AV8FilterName);
     if (String.IsNullOrEmpty(StringUtil.RTrim(AV8FilterName)))
     {
         GX_msglist.addItem("Empty");
     }
     else
     {
         AV10GridStateCollection.FromXml(new GeneXus.Programs.wwpbaseobjects.loadmanagefiltersstate(context).executeUdp(AV15UserKey), null, "Items", "");
         AV12IsNameUnique = true;
         AV22GXV1         = 1;
         while (AV22GXV1 <= AV10GridStateCollection.Count)
         {
             AV11GridStateCollectionItem = ((GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item)AV10GridStateCollection.Item(AV22GXV1));
             if (StringUtil.StrCmp(AV11GridStateCollectionItem.gxTpr_Title, AV8FilterName) == 0)
             {
                 AV12IsNameUnique = false;
             }
             AV22GXV1 = (int)(AV22GXV1 + 1);
         }
         if (AV12IsNameUnique)
         {
             AV11GridStateCollectionItem                    = new GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item(context);
             AV11GridStateCollectionItem.gxTpr_Title        = AV8FilterName;
             AV11GridStateCollectionItem.gxTpr_Gridstatexml = AV6Session.Get(AV5GridStateKey);
             AV10GridStateCollection.Add(AV11GridStateCollectionItem, 1);
             new GeneXus.Programs.wwpbaseobjects.savemanagefiltersstate(context).execute(AV15UserKey, AV10GridStateCollection.ToXml(false, true, "Items", ""));
             context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV15UserKey", AV15UserKey);
             context.httpAjaxContext.ajax_rsp_assign_attri("", false, "gxhash_vUSERKEY", GetSecureSignedToken("", StringUtil.RTrim(context.localUtil.Format(AV15UserKey, "")), context));
             context.setWebReturnParms(new Object[] {});
             context.setWebReturnParmsMetadata(new Object[] {});
             context.wjLocDisableFrm = 1;
             context.nUserReturn     = 1;
             returnInSub             = true;
             if (true)
             {
                 return;
             }
         }
         else
         {
             GX_msglist.addItem("Not unique");
         }
     }
     /*  Sending Event outputs  */
 }