コード例 #1
0
        //表单里的控件排序、转换
        public void SetFormPanel()
        {
            Dictionary <int, SortedList <int, PbBaseControlInfo> > dic =
                new Dictionary <int, SortedList <int, PbBaseControlInfo> >();

            formPanel.Items = this.Sort(formPanel.Items, ref dic);


            //转类型
            foreach (var item in formPanel.Items)
            {
                formPanel.Fields.Add(AppControlConverter.ConvertToExtControl(item));
            }
            CommonParser.Log("formPanel转换成功.");
        }
コード例 #2
0
ファイル: AppPbEditFormParser.cs プロジェクト: RaoLeigf/msyh
        //表头普通的
        public TableLayoutForm GetFormInfo()
        {
            Dictionary <int, SortedList <int, PbBaseControlInfo> > dic =
                new Dictionary <int, SortedList <int, PbBaseControlInfo> >();

            layoutForm.Items = this.Sort(layoutForm.Items, ref dic);

            //计算该fieldset 每行最多的colspan
            layoutForm = CalColSpan(layoutForm, dic);

            //转类型
            foreach (var item in layoutForm.Items)
            {
                layoutForm.FieldsApp.Add(AppControlConverter.ConvertToExtControl(item));
            }
            CommonParser.Log("TableLayoutForm转换成功.");
            return(layoutForm);
        }