帐号获取和插入保存移动到相同的地方处理  app_login_account
小程序授权登录处理 不是在app_login_account 创建一个字段 而是和其它授权登录一样 在app_auth_login创建关联信息
------WebKitFormBoundary0tRrYTFVmWVNAhnC
Content-Disposition: form-data; name="file"; filename="微信图片_20221104175832.jpg"
Content-Type: image/jpeg


wkeHttBodyElementTypeFile


------WebKitFormBoundary0tRrYTFVmWVNAhnC--




http://127.0.0.1:5203/portal.html?app=admin#!page=admin__adminmanage__infoArticle__edit&etype=edit&sno=1000005





一个字段
端口 默认  指定端口
字符编码 0 默认

timeout 一个字段
db version

db  ext type
db ext str

alter table sys_set_database DROP COLUMN conn_str;

alter table sys_set_database add db_data_source nvarchar(200)  null;
alter table sys_set_database add db_port int  null;
alter table sys_set_database add db_user_name nvarchar(50)  null;
alter table sys_set_database add db_user_pwd nvarchar(50)  null;
alter table sys_set_database add db_db_name nvarchar(50)  null;
alter table sys_set_database add db_encode nvarchar(50)  null;
alter table sys_set_database add db_timeout int  null;
alter table sys_set_database add db_version int  null;
alter table sys_set_database add db_ext_type int  null;
alter table sys_set_database add db_ext_str nvarchar(200)  null;
alter table sys_set_database add db_config ntext  null;





码流可以执行一段sql 带参数的或者不带参数的/要不要加上执行存储过程呢


下载集成的助码里面


MySql Sqlite SqlServer

添加排序类型 和行号字段

disable_submit_button-》order_type   OrderType
tab_background_color    row_number_field  RowNumberField
on_button_add_pre_click ->page_finish_load_data   PageFinishLoadData


 alter table sys_set_form alter column tab_background_color nvarchar(100)  null;

ALTER TABLE YourTableName ALTER COLUMN YourColumnName NewDataType;




OnPageLoadSetData


PageAfterLoadData





编辑表格的行号

表单加载完成以后执行的动作 afterload

程序可以判断 目前是使用哪个数据库
使用存储过程的多种执行方式
create procedure my_test_proc
as
begin
select * from login_history
end

编码选项 -》单据字段
:fvalue="f_ClientBillCodeSet_CodeKey" 
http://127.0.0.1:5203/manage/ClientBillCodeSet/edit?etype=edit&sno=af2ccb91497b0cf2addf77bc9adc2f2b

:fvalue="f_ClientBillCodeSet_CodeKey" 



PartField2ObjPartField2.GetStringValue(String alias)

-		parameters[0].GetType()	{Name = "JsNull" FullName = "ZmScript.Native.JsNull"}	System.Type {System.RuntimeType}



appid wenti
 public void refreshBillCodeType(){

      if (!string.IsNullOrEmpty(cusif))
      {
          if (hasBoolOne)
          {
              model.cusif.SetBindCusValBoolOne(cusif, lname, isTrue);
          }
          else
          {
              model.cusif.SetBindCusVal(cusif);
          }
          
      }



SPLsysbillcodeslen00000000000000


单据 默认的情况不显示 或者不能更改

默认 不能更改

流水号长度换成静态字典



 if (ZmUtil.isNotNull(CodeKeyObjCodeKey) )
{
   data.HasField=CodeKeyObjCodeKey.GetBoolValue("hasField");
}|_|__|_||_|__|_|script|_|__|_|{"blocks":{"languageVersion":0,"blocks":[{"type":"dbselect","id":"(:_dDmKyczYTDv=J~+*8","x":295,"y":57,"extraState":{"tag":"dbselect","db":"","createType":"create","caller":"curDb","code":"","ltype":"none","lpackage":"","lname":"","lprop":"","vtype":"","table":"","alias":"d","resultType":"HashList","selectType":"all","dataLimit":0,"dataStart":0,"isRawName":0,"fields":[{"fieldType":"common","order":"none","alias":"","group":0,"table":"demo_single_two_main","name":"table_id","valueType":"code","value":"","dataType":"INT","l":0,"p":0,"s":0,"use":true},{"fieldType":"common","order":"none","alias":"","group":0,"table":"demo_single_two_main","name":"table_name","valueType":"code","value":"","dataType":"VARCHAR","l":50,"p":0,"s":0,"use":true},{"fieldType":"common","order":"none","alias":"","group":0,"table":"demo_single_two_main","name":"table_num","valueType":"code","value":"","dataType":"INT","l":0,"p":0,"s":0,"use":true}],"conditions":[],"joins":[],"cusJoins":"","cusFields":"","cusGroups":"","cusOrders":"","cusConditions":""},"fields":{"table":"demo_single_two_main"},"inputs":{"leftValue":{"block":{"type":"variable_createsetreturn","id":"6r}M|B|=V,1XQ(R}/s]d","fields":{"VAR":{"id":"?U9L=tH0d@sUAuD=sid7"}}}}},"next":{"block":{"type":"block","id":"7H=SsDMZ8@Ixb]0dH/)w","extraState":{"tag":"block","etype":"code","code":"base.setPageHashListResults(retMsg,dataList);\n pager.TotalItems = 100; "}}}}]},"variables":[{"name":"Count","id":"Count","note":"","package":"","custype":"","scrtype":"","srcid":""},{"name":"dataList","id":"?U9L=tH0d@sUAuD=sid7","type":"ZmHashList","note":"","package":"","custype":"","scrtype":"","srcid":""}]}|_|__|_||_|__|_|



 refreshBillCodeType: function () {
            var that = this;
            var hasField = that.getData("f_ClientBillCodeSet_HasField");
     var billcodetypeOptions = that.getData("select__key__values__sysbillcodetype");
     var fieldIndex = -1;
            for (var index = 0; index < billcodetypeOptions.length; index++) {
                var option = billcodetypeOptions[index];
                if (option.key == 10) {
                    fieldIndex = index;
                }
            }
     if (hasField) {
         if (fieldIndex < 0) {
             //应该有单据字段但是实际上没有的情况
             billcodetypeOptions.push({
                 key:10,
                        val: "单据字段"
             });
         }
     }
     else {

                if (fieldIndex>=0) {
                    //应该没有有单据字段但是实际上有的情况
                    billcodetypeOptions.splice(fieldIndex, 1); // 使用splice()方法删除该元素
	   that.setData("select__key__values__sysbillcodetype",billcodetypeOptions);
                }
     }

 
 }
 ,


  if (ZmUtil.isNotNull(CodeKeyObjCodeKey))
  {
      data.HasField = CodeKeyObjCodeKey.GetIntValue("hasField");
  }

data.HasField=CodeKeyObjCodeKey.GetBoolValue("hasField");



            if (ZmUtil.isNotNull(CodeKeyObjCodeKey))
            {
                data.HAS = CodeKeyObjCodeKey.GetStringValue("alias");


            }

2", val: "自动字符
f_ClientBillCodeSet_PartAuto1
f_ClientBillCodeSet_PartAuto1Text

"4", val: "固定字符  不需要option

"6", val: "当前日期
f_ClientBillCodeSet_PartDate1
f_ClientBillCodeSet_PartDate1Text



 "8", val: "流水号"
f_ClientBillCodeSet_PartSnum1
f_ClientBillCodeSet_PartSnum1Text


: "10", val: "单据字段"
f_ClientBillCodeSet_PartField1
f_ClientBillCodeSet_PartField1Text


重置类型

固定字符

流水号长度




group里面是否可以添加 before load data
afterloaddata

beforesavedata
aftersavedata


否
普通单据编号
有动态字段的单据编号
 //[RouteAction("getData")]
 public void getData(string id)
 {


    //[RouteAction("fetchColumnFromDb")]
   public void fetchColumnFromDb(string pid)
"DbSNO": "@(Html.GetSelectFirstKey((string[,])(ViewData["PlAllDatabases"])))",
    


BillCodeConfig

角色用户里面添加
角色授权列


帐号 是否是app列
帐号用户对应列
是否有一个开始应用列
应用（公司）字典


alter table sys_setting add role_auth_ref nvarchar(50)  null;

alter table sys_setting add user_in_account int  null;
alter table sys_setting add account_is_user_ref nvarchar(50)  null;
alter table sys_setting add account_user_ref nvarchar(50)  null;

alter table sys_setting add has_point_app int  null;
alter table sys_setting add point_app_ref nvarchar(50)  null;

alter table sys_setting add has_bill_code_type int  null;
alter table sys_setting add bill_code_ref nvarchar(50)  null;
alter table sys_setting add serial_number_ref nvarchar(50)  null;



global

openAccount
登录帐号 字典
app_auth_login account_id
oauth_clients
授权第三方登录是否开启

加密配置  

开启单据编号
单据编号的实现方式 保存时候 还是新加时候 可以和单据编号合并
单据编号表
流水号表

开启中心文件存储 资源中心存储类型  好像已经有了
 中心文件存储表/设备 
看看资源存储是否可以放到uc里面


alter table sys_global add script_type int  null;

alter table sys_global add has_account int  null;

alter table sys_global add app_account nvarchar(50)  null;

alter table sys_global add has_third_auth int  null;

alter table sys_global add has_clients_auth int  null;
alter table sys_global add auth_account nvarchar(50)  null;
alter table sys_global add auth_clients nvarchar(50)  null;
alter table sys_global add encrypt_config ntext  null ;

alter table sys_global add has_bill_code_type int  null;
alter table sys_global add bill_code_ref nvarchar(50)  null;
alter table sys_global add serial_number_ref nvarchar(50)  null;

alter table sys_global add center_file_ref nvarchar(50)  null;





表单 报表和自由页面 开启单据编号   
单据编号类型  开启 类型    data_source_type   bill_code_type 
如果不是表单 选择指定表   main_table
选择自定义开启字段 设定的可以选择的字段  hand_request  自由页面需要添加   
单据编号字段设置 可以参与编号的字段 bill_code_field

EXEC sp_rename 'sys_free_page.data_source_type', 'bill_code_type', 'COLUMN';

alter table sys_free_page add db_sno nvarchar(100)  null;

alter table sys_free_page add main_table nvarchar(100)  null;

alter table sys_free_page add bill_code_config ntext  null ;

alter table sys_free_page add bill_code_field nvarchar(100)  null;




EXEC sp_rename 'sys_report_main.data_source_type', 'bill_code_type', 'COLUMN';

alter table sys_report_main add main_table nvarchar(100)  null;


EXEC sp_rename 'sys_report_main.hand_request', 'bill_code_config', 'COLUMN';

alter table sys_report_main add bill_code_field nvarchar(100)  null;


--sys_set_form

EXEC sp_rename 'sys_set_form.data_source_type', 'bill_code_type', 'COLUMN';

728719
EXEC sp_rename 'sys_set_form.hand_request', 'bill_code_config', 'COLUMN';



alter table sys_set_form alter column tab_background_color nvarchar(100)  null;

 EXEC sp_rename 'sys_set_form.disable_submit_button', 'order_type', 'COLUMN';
  EXEC sp_rename 'sys_set_form.tab_background_color', 'row_number_field', 'COLUMN';
   EXEC sp_rename 'sys_set_form.on_button_add_pre_click', 'page_finish_load_data', 'COLUMN';



mainTableChanged


alter table sys_set_form add bill_code_field nvarchar(100)  null;
BillCodeConfigSet
D:\WebSite\ZhuMaFwkCore\ZhuMa.WebStart\Views\FlowDefine\BillCodeConfigSet.cshtml


  outObj.BillCodeType = form.BillCodeType;
  outObj.BillCodeConfig = form.BillCodeConfig;
  outObj.BillCodeField = form.BillCodeField;




picklist

alter table sys_pick_list add db_sno nvarchar(100)  null;
alter table sys_pick_list add main_table nvarchar(100)  null;



   parametersReserveScript: [{
       name: "conditions",
       type: "ZmQueryConditionList"
   }, {
       name: "sorter",
       type: "ZmSorter"
   }
       , {
       name: "retMsg",
       type: "ZmPageData<ZmHash>"
   }
       ,
   {
       name: "pager",
       type: "ZmPager"
   }
   ],


${item.GetVal("tableName")}


OnLoadScript

    this.addcommon("zmtreeDesigner",hash);

this.addcommon("about",hash);

public   void addcommon (ZmActiveRequest curRequest,ZmHash hash)
{

}
//将文本中各个字符的顺序倒转
StringUtil.Reverse()


   datalist: {
       type: Array,
       value: []
   },

   : {
       type: Array,
       value: []
   }


,
                //数据列表  前台指的是data 后台指的是当前this的字段 field 
                datalist: {
                    type: Array,
                    value: []
                },
                //属性列表 前台指的是prop 后台指的是当前this的属性 prop
                proplist: {
                    type: Array,
                    value: []
                }


   name: "",
   type: "",
   rtype: "str",
   val: "",
   nature: "common",
   note: ""

custype 代表的是自定义的类型 

比如前台是hash或者object 里面的type都是无类型信息的 有了这个custype可以把他的类型信息代入进来

scrtype 来源类型 0 外部传入的变量 1 本段脚本创建的变量

srcid 来源组件的id

id和变量的id是一样的


VariableModel



设置值的时候
  for (var parameter of obj.parameters) {
      allVariableList.push({
          value: parameter.name,
          vtype: parameter.type,
          package: parameter.package,
          note: parameter.note,
          id:("parameters" + idIndex++)
      });
  }




 name: "fromInStep",
 type: that.formData.extData.flowInStepName





搜索 是 fieldName 和 fieldOrder两个字段 默认都是空 

要测试的页面
快速搜索还是有问题  日期是否可以快速的查询

字典 必填项的时候还是有问题 默认的时候不对 不是否

多个排序和单个排序的页面

一个页面可以弹窗或者行编辑

外部数据源的增删改查

按钮detail权限不会自动出来


按钮 
添加按钮那里 多了一个添加按钮

按钮的脚本设置应该是可以选择界面上的脚本

data_index
form show
datalist
这些数据到底放在那里才可以共享


异步脚本没法调用控制器函数


看看计划任务 有service的情况下是否可以取到
命令行模式下是否可以执行计划任务
时间不对

不应该再选择业务类别
作业创建时候不显示才对
作业那里该成作业动作

zmfw.exe会报一个错误
作业写到sqlite日志里面
测试字典顺序参数不对的情况
