2022年11月11日
摘要: 大家都知道在JavaScript中提供了两种方式迭代对象:(1)for 循环;(2)for..in循环;使用for循环进行迭代数组对象,想必大家都已经司空见惯了。但是,使用for.. in循环时,大家可要注意了,为什么这么说呢?大家听我娓娓道来....javascript提供了一种特殊的循环(也就是 阅读全文
posted @ 2022-11-11 17:17 天涯何 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1. 你是否尝试过对数组元素进行排序? JavaScript默认使用字典序(alphanumeric)来排序。因此, [1,2,5,10].sort()的结果是[1, 10, 2, 5]。 如果你想正确的排序,应该这样做: [1,2,5,10].sort((a, b) => a - b) 2. ne 阅读全文
posted @ 2022-11-11 17:11 天涯何 阅读(21) 评论(0) 推荐(0) 编辑
  2022年10月17日
摘要: 使用是需要将获取到的datalist数据处理 this.setState({ generalTask: { data: toTree(dataList), currentPage: this.state.currentPage, totalCount: Number(res.dataCunt) } 阅读全文
posted @ 2022-10-17 14:29 天涯何 阅读(44) 评论(0) 推荐(0) 编辑
  2022年6月7日
摘要: //关联信息子表变化事件 that.D002033FunctionSupervisionProblemList.BindChange( 'D002033FunctionSupervisionProblemList', function( res ) { var currentRowId = res[ 阅读全文
posted @ 2022-06-07 20:28 天涯何 阅读(47) 评论(0) 推荐(0) 编辑
  2022年5月26日
摘要: //验证用户组织架构 string[] orgIds protected bool checkeOrg(string[] DepCheckId) { //根据用户id获取用户所在部门 H3.Organization.User user = (H3.Organization.User) this.En 阅读全文
posted @ 2022-05-26 16:12 天涯何 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 定时器调用消息通知 //定义一个定时器类(类名格式:自定义功能名 + _Timer),且继承H3.SmartForm.Timer类 // public class Supervision_Timer: H3.SmartForm.Timer // { // //构造方法,跟类名保持一致,里面不必书写代 阅读全文
posted @ 2022-05-26 16:09 天涯何 阅读(45) 评论(0) 推荐(0) 编辑
摘要: // 定义一个定时器类(类名格式:自定义功能名 + _Timer),且继承H3.SmartForm.Timer类 public class Supervision_Timer: H3.SmartForm.Timer { //构造方法,跟类名保持一致,里面不必书写代码,但是必须存在 public Su 阅读全文
posted @ 2022-05-26 16:07 天涯何 阅读(89) 评论(0) 推荐(0) 编辑
摘要: H3.DataModel.BizObject[] details = (H3.DataModel.BizObject[]) this.Request.BizObject["D002033FileCopyToCompany"]; //获取子表属性并强制转换为对象数组 Convert.ToInt32 C 阅读全文
posted @ 2022-05-26 16:02 天涯何 阅读(87) 评论(0) 推荐(0) 编辑
摘要: this.Request.Engine.BizObjectManager.CopyFiles("原-主表编码", "原-子表编码", "原-子表内附件控件编码", "原-子表数据ObjectId", "新-主表编码","", "新-主表内附件控件编码", "新-主表数据ObjectId", true 阅读全文
posted @ 2022-05-26 16:00 天涯何 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 换行 // string sql = "UPDATE i_D002033FunctionSupervisionPlanList SET planTimeSlot = REPLACE (planTimeSlot,';','; \\n ') WHERE parentobjectid = 'e912f50 阅读全文
posted @ 2022-05-26 15:57 天涯何 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 刷新数据标题的本质是新建一个控件,刷新此控件信息,将会更新数据标题 // string sql = "select * from i_" + this.Request.SchemaCode; // System.Data.DataTable dt = this.Request.Engine.Quer 阅读全文
posted @ 2022-05-26 15:56 天涯何 阅读(24) 评论(0) 推荐(0) 编辑
摘要: if(actionName == "Submit") { H3.DataModel.BizObject[] childBoList = (H3.DataModel.BizObject[]) this.Request.BizObject["D002033StructuresLibraryDailyRe 阅读全文
posted @ 2022-05-26 15:55 天涯何 阅读(25) 评论(0) 推荐(0) 编辑
  2022年5月15日
摘要: //定时器代码可以写在另一个表单中调用这个类//只要写成了类就可以在本应用中调用//调用的方法是new这个类对象,然后用对象点出来public class FunctionSupClass {//engine objectid 为参数传入 提交流程将true换成false public void F 阅读全文
posted @ 2022-05-15 00:58 天涯何 阅读(31) 评论(0) 推荐(0) 编辑
摘要: if(actionName == "generateFunctionSupervisionPlanList") { List < Dictionary < string, object >> childBoList = this.Deserialize<List<Dictionary<string, 阅读全文
posted @ 2022-05-15 00:44 天涯何 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 高级模式 用户使用高级函数设置业务规则包括 INSERT DELETE UPDATE UPSERT ADDFILE REMOVEFILE 注 ObjectId 表的唯一标识 parentObjectId 子表的唯一标识 ModifiedBy 修改人 WorkflowinstanceId 流程实例 S 阅读全文
posted @ 2022-05-15 00:33 天涯何 阅读(126) 评论(0) 推荐(0) 编辑
  2022年5月13日
摘要: 使用 window.alert() 弹出警告框。 使用 document.write() 方法将内容写到 HTML 文档中。 使用 innerHTML 写入到 HTML 元素。 使用 console.log() 写入到浏览器的控制台。 Number.MAX_VALUE 最大值 Number.MIN_ 阅读全文
posted @ 2022-05-13 00:00 天涯何 阅读(7) 评论(0) 推荐(0) 编辑
  2022年5月12日
摘要: // string sql = "UPDATE i_D002033Clockin a JOIN i_D002033attendanceDetail s ON MONTH(s.dateTime) = MONTH(a.Checkinperiod) and day(s.dateTime) = day(a. 阅读全文
posted @ 2022-05-12 19:56 天涯何 阅读(63) 评论(0) 推荐(0) 编辑
摘要: //load写在submit后面if(actionName == "Submit" && this.Request.ActivityCode == "Activity2") { H3.DataModel.BizObjectSchema jobschema = this.Request.Engine. 阅读全文
posted @ 2022-05-12 19:51 天涯何 阅读(30) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using H3; public class D1505165b8d9780f9e349ab90537f34db37d255: H3.SmartForm.SmartF 阅读全文
posted @ 2022-05-12 09:41 天涯何 阅读(171) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using H3; public class D150516046321d5dbfc4d4e88380f736e51150e: H3.SmartForm.SmartF 阅读全文
posted @ 2022-05-12 09:40 天涯何 阅读(31) 评论(0) 推荐(0) 编辑
摘要: /* 控件接口说明: * 1. 读取控件: this.***,*号输入控件编码; * 2. 读取控件的值: this.***.GetValue(); * 3. 设置控件的值: this.***.SetValue(???); * 4. 绑定控件值变化事件: this.***.BindChange(ke 阅读全文
posted @ 2022-05-12 09:39 天涯何 阅读(58) 评论(0) 推荐(0) 编辑
  2022年5月11日
摘要: SELECT b.name Signinperson , MAX(CASE t.Checkintype WHEN '上班打卡' THEN t.Checkinperiod ELSE null END) dept1, MAX(CASE t.Checkintype WHEN '下班打卡' THEN t.C 阅读全文
posted @ 2022-05-11 10:20 天涯何 阅读(90) 评论(0) 推荐(0) 编辑
  2022年5月10日
摘要: public bool judgeWorkDay(DateTime day, H3.IEngine engine) { List < string > allholidy= getAllHoliday(engine); string dayTime = day.ToString("yyyyMMdd" 阅读全文
posted @ 2022-05-10 21:05 天涯何 阅读(150) 评论(0) 推荐(0) 编辑
  2022年5月9日
摘要: // 加一个list集合,将数据添加至集合中 List < H3.DataModel.BizObject > list = new List<H3.DataModel.BizObject>(); //判断子表数据是否为空,不为空则保存 if(childBoList != null) { //先将原来 阅读全文
posted @ 2022-05-09 15:44 天涯何 阅读(22) 评论(0) 推荐(0) 编辑
摘要: // 提交后Activity4新增目标表单物资信息 if(childPaCategory != null && childPaCategory.Length > 0) { foreach(H3.DataModel.BizObject child in childPaCategory) { //供应商 阅读全文
posted @ 2022-05-09 15:40 天涯何 阅读(99) 评论(0) 推荐(0) 编辑
摘要: if( $.SmartForm.ResponseContext.ActivityCode == "Activity2" ) { // 添加一行子表空白行 var controlManager = that.D150516Addthemerchants;//获取子表控件对象 var controlMa 阅读全文
posted @ 2022-05-09 15:35 天涯何 阅读(25) 评论(0) 推荐(0) 编辑
  2022年5月7日
摘要: //考勤打卡表单using System; using System.Collections.Generic; using System.Text; using H3; public class D002033Clockin: H3.SmartForm.SmartFormController { p 阅读全文
posted @ 2022-05-07 10:38 天涯何 阅读(194) 评论(0) 推荐(0) 编辑
  2022年5月6日
摘要: 前端代码// 提交后事件 AfterSubmit: function( action, responseValue ) { //addStage 按钮控件 if( action == "addStage" ) { $.SmartForm.PostForm( "getStage", { isStage 阅读全文
posted @ 2022-05-06 11:27 天涯何 阅读(74) 评论(0) 推荐(0) 编辑
摘要: //状态改为进行中 targetBo.Status = H3.DataModel.BizObjectStatus.Running; string instanceId = System.Guid.NewGuid().ToString(); if(string.IsNullOrEmpty(target 阅读全文
posted @ 2022-05-06 09:24 天涯何 阅读(42) 评论(0) 推荐(0) 编辑
  2022年5月5日
摘要: 可以换日期函数为月或者年 这样便可以做到一个月只能提交一次或者一年一天提交一次 阅读全文
posted @ 2022-05-05 19:29 天涯何 阅读(23) 评论(0) 推荐(0) 编辑
  2022年4月29日
摘要: var that = this; // 表单插件代码 $.extend( $.JForm, { // 加载事件 OnLoad: function() { // this.SeqNo.SetVisible( false ); if($.SmartForm.ResponseContext.Activit 阅读全文
posted @ 2022-04-29 16:31 天涯何 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 一般出现这种问题是因为原来的数据标题是空的,然后你重置了流水号,但是系统没去重置数据标题,所以就显示这样了 代码要放在对应的生成单里面进行判断,否则会照成系统的编码错乱 阅读全文
posted @ 2022-04-29 12:39 天涯何 阅读(94) 评论(0) 推荐(0) 编辑
  2022年4月27日
摘要: //供应商的构建schema H3.DataModel.BizObjectSchema schemaVendor = this.Request.Engine.BizObjectManager.GetPublishedSchema("D150516vendor"); //new供应商一个对象 H3.D 阅读全文
posted @ 2022-04-27 14:16 天涯何 阅读(39) 评论(0) 推荐(0) 编辑
  2022年4月24日
摘要: 根据库存数量进行判断数量是否有无,无则提示 //p判断现有库存数量大于出库数量 //库存单的构建schema H3.DataModel.BizObjectSchema schema = this.Request.Engine.BizObjectManager.GetPublishedSchema(" 阅读全文
posted @ 2022-04-24 09:55 天涯何 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 关联表单默认显示数据 var currentRowId = this.D150516shoppingList.GetValue()[ 0 ].ObjectId; //第一行子表ID this.D150516shoppingList.UpdateRow( currentRowId, { "D15051 阅读全文
posted @ 2022-04-24 09:52 天涯何 阅读(42) 评论(0) 推荐(0) 编辑
  2022年4月19日
摘要: that.D002033PostManagementRelatedInformationList.BindChange( 'D002033PMRILKey', function( res ) { var currentRowId = res[ 0 ].ObjectId; var field = re 阅读全文
posted @ 2022-04-19 14:07 天涯何 阅读(20) 评论(0) 推荐(0) 编辑
  2022年4月18日
摘要: //主表内附件控件 复制到 主表内附件控件 上 this.Request.Engine.BizObjectManager.CopyFiles("原-主表编码", "", "原-主表内附件控件编码", "原-主表数据ObjectId", "新-主表编码","", "新-主表内附件控件编码", "新-主 阅读全文
posted @ 2022-04-18 23:33 天涯何 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 通过按钮把数据打包转到另一张,本表数据将会被移除 点击数据出现按钮,转移数据 阅读全文
posted @ 2022-04-18 23:15 天涯何 阅读(68) 评论(0) 推荐(0) 编辑
摘要: //根据登陆用户的工程权限来控制加载列表数据 protected override void OnInit(H3.SmartForm.LoadListViewResponse response) { //Utils来自于基础类 Utils.changeTitle(response, "Name", 阅读全文
posted @ 2022-04-18 22:19 天涯何 阅读(20) 评论(0) 推荐(0) 编辑
摘要: //和OnLoad平级,为重写方法 protected override void OnWorkflowInstanceStateChanged(H3.Workflow.Instance.WorkflowInstanceState oldState, H3.Workflow.Instance.Wor 阅读全文
posted @ 2022-04-18 17:53 天涯何 阅读(49) 评论(0) 推荐(0) 编辑