Пример #1
0
        public CWOneChildDefaultView()
            : base("CWOneChild", "独生子女统计")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("FK_CWID", "所属村镇", true, "CWInfoDefaultView"));
            vic.Add(new ViewItem("ChildName", "姓名", true));
            //vic.Add(new ViewItem("Sex", "性别", true,""));
            vic.Add(new ViewItem("FathIDCardNo", "父亲身份证号", true));
            vic.Add(new ViewItem("MothIDCardNo", "母亲身份证号", true));
            vic.Add(new ViewItem("OneChildNo", "光荣证号", true));
            vic.Add(new ViewItem("IssueOrg", "发证机关", true));
            vic.Add(new ViewItem("BirthDate", "出生年月", true));
            //vic.Add(new ViewItem("InSchool", "就读学校", true));
            //vic.Add(new ViewItem("FamilyAddress", "家庭居住地址", true));
            //vic.Add(new ViewItem("FamilyIncome", "家庭人均收入", true));
            //vic.Add(new ViewItem("InsuNo", "独生子女保险卡号", true));

            this.PKField = new ViewItem("PKID", "PKID");

            /// <summary>
            /// GridPicker控件用于显示的字段请根据实际情况修改
            /// </summary>
            this.DisplayField            = new ViewItem("IDCardNo", "身份证号", true);
            this.VisibleColumnCollection = vic;
        }
Пример #2
0
        private string GenerateTableRow(DataView vw)
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            if (vw.Count > 0)
            {
                ViewItemCollection vic = this.BusinessObjectView.VisibleColumnCollection;

                for (int i = 0; i < vw.Count; i++)
                {
                    sb.AppendFormat("<tr class=\"{0}\" onclick=\"SetControlText('{1}', '{2}');SetControlValue('{3}','{4}');\">",
                                    (i % 2 == 0)?"DGItemStyle":"DGAlternatingItemStyle",
                                    this.textControlID, vw[i][this.BusinessObjectView.DisplayField.FieldName].ToString(),
                                    this.valueControlID, vw[i][this.BusinessObjectView.PKField.FieldName].ToString());

                    sb.Append("<td><input type=\"checkbox\"></td>");                                                                      // Checkbox Column
                    sb.AppendFormat("<td style=\"display:none;\">{0}</td>", vw[i][this.BusinessObjectView.PKField.FieldName].ToString()); // PKID Column

                    for (int j = 1; j < vic.Count; j++)
                    {
                        sb.AppendFormat("<td>{0}</td>", GenerateCellControl(vic[j], vw[i]));
                    }

                    sb.Append("</tr>");
                }
            }
            return(sb.ToString());
        }
Пример #3
0
        public CWNewMarrigeDefaultView()
            : base("CWNewMarrige", "新婚登记")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("FK_CWID", "所属村镇", true, "CWInfoDefaultView"));
            vic.Add(new ViewItem("MaleName", "男方姓名", true));
            vic.Add(new ViewItem("MaleAddress", "男方户籍地址", true));
            vic.Add(new ViewItem("MaleLinkPhone", "男方联系方式", true));
            vic.Add(new ViewItem("FemaleIDCardNo", "女方身份证号", true));
            vic.Add(new ViewItem("FemaleName", "女方姓名", true));
            vic.Add(new ViewItem("FemaleAddress", "女方户籍地址", true));
            vic.Add(new ViewItem("FemaleLinkPhone", "女方联系方式", true));
            vic.Add(new ViewItem("MarrigeDate", "结婚登记日期", true));
            //vic.Add(new ViewItem("IsPregnant", "是否怀孕", true,""));
            //vic.Add(new ViewItem("ExpectDate", "预产期", true));
            //vic.Add(new ViewItem("VillageDate", "村委登记日期", true));
            //vic.Add(new ViewItem("MarrigeNo", "结婚登记证号", true));

            this.PKField = new ViewItem("PKID", "PKID");

            /// <summary>
            /// GridPicker控件用于显示的字段请根据实际情况修改
            /// </summary>
            this.DisplayField            = new ViewItem("MaleIDCardNo", "男方身份证号", true);
            this.VisibleColumnCollection = vic;
        }
Пример #4
0
        public CWOneChildAwardDefaultView()
            : base("CWOneChildAward", "独生子女奖励费统计")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("FK_CWID", "所属村镇", true, "CWInfoDefaultView"));
            vic.Add(new ViewItem("OwnName", "享受人姓名", true));
            vic.Add(new ViewItem("ChildIDCardNo", "孩子身份证号", true));
            vic.Add(new ViewItem("ChildName", "孩子姓名", true));
            vic.Add(new ViewItem("BirthDate", "出生年月", true));
            vic.Add(new ViewItem("OneChildNo", "独生子女光荣证号", true));
            //vic.Add(new ViewItem("RealMonth", "享受月数", true));
            //vic.Add(new ViewItem("AwardFee", "金额", true));
            //vic.Add(new ViewItem("LinkPhone", "联系电话", true));
            //vic.Add(new ViewItem("AuthName", "持卡人姓名", true));
            //vic.Add(new ViewItem("ABCNo", "农行卡号", true));
            //vic.Add(new ViewItem("AuthIDCardNo", "持卡人身份证号", true));
            //vic.Add(new ViewItem("AwardYear", "年份", true));

            this.PKField = new ViewItem("PKID", "PKID");

            /// <summary>
            /// GridPicker控件用于显示的字段请根据实际情况修改
            /// </summary>
            this.DisplayField            = new ViewItem("OwnIDCardNo", "享受人身份证号", true);
            this.VisibleColumnCollection = vic;
        }
Пример #5
0
        public CWBirthInfoDefaultView()
            : base("CWBirthInfo", "村务出生小孩信息")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("FK_CWID", "所属村镇", true, "CWInfoDefaultView"));
            //vic.Add(new ViewItem("Sex", "性别", true, ""));
            vic.Add(new ViewItem("BirthDate", "出生年月", true));
            vic.Add(new ViewItem("BirthNo", "出生证编号", true));
            //vic.Add(new ViewItem("IsPlan", "是否计划", true, ""));
            //vic.Add(new ViewItem("ExpectDate", "预产期", true));
            //vic.Add(new ViewItem("ChildAddress", "户籍地址", true));
            vic.Add(new ViewItem("HolderName", "户主姓名", true));
            vic.Add(new ViewItem("HolderIDCardNo", "户主身份证号", true));
            //vic.Add(new ViewItem("FathName", "父亲姓名", true));
            //vic.Add(new ViewItem("FathIDCardNo", "父亲身份证号", true));
            //vic.Add(new ViewItem("FathAddress", "父亲户籍地址", true));
            //vic.Add(new ViewItem("FathLinkPhone", "父亲联系方式", true));
            //vic.Add(new ViewItem("MothName", "母亲姓名", true));
            //vic.Add(new ViewItem("MothIDCardNo", "母亲身份证号", true));
            //vic.Add(new ViewItem("MothAddress", "母亲户籍地址", true));
            //vic.Add(new ViewItem("MothLinkPhone", "母亲联系方式", true));

            this.PKField = new ViewItem("PKID", "PKID");

            /// <summary>
            /// GridPicker控件用于显示的字段请根据实际情况修改
            /// </summary>
            this.DisplayField            = new ViewItem("ChildName", "小孩姓名", true);
            this.VisibleColumnCollection = vic;
        }
Пример #6
0
		public OperationLogDefaultView() : base("OperationLog", "操作日志")
		{
			ViewItemCollection vic = new ViewItemCollection();
			vic.Add(new ViewItem("Description", "操作描述", true));
			vic.Add(new ViewItem("CreateUser", "操作者", true, "UserDefaultView"));
			vic.Add(new ViewItem("CreateTime",	"操作时间", true));

			this.PKField = new ViewItem("PKID", "PKID");
			this.DisplayField = new ViewItem("Module", "功能模块", true);
			this.VisibleColumnCollection = vic;
		}
Пример #7
0
        public CWPerInfoDefaultView()
            : base("CWPerInfo", "村务人员信息")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("FK_CWID", "所属村镇", true, "CWInfoDefaultView"));
            vic.Add(new ViewItem("IDCardNo", "身份证号", true));
            //vic.Add(new ViewItem("Sex", "性别", true,""));
            //vic.Add(new ViewItem("Nation", "民族", true, ""));
            //vic.Add(new ViewItem("Politics", "政治面貌", true, ""));
            //vic.Add(new ViewItem("IsHolder", "是否户主", true, ""));
            vic.Add(new ViewItem("HolderName", "户主姓名", true));
            vic.Add(new ViewItem("HolderIDCardNo", "户主身份证号", true));
            //vic.Add(new ViewItem("HolderPorp", "户口性质", true,""));

            //vic.Add(new ViewItem("HolderAddress", "户籍地址", true));
            //vic.Add(new ViewItem("LiveAddress", "居住地址", true));
            //vic.Add(new ViewItem("LinkPhone", "联系电话", true));
            //vic.Add(new ViewItem("WorkUnit", "工作单位", true));
            //vic.Add(new ViewItem("MarrigeStatus", "结婚状况", true));
            //vic.Add(new ViewItem("MarrigeDate", "结婚登记日期", true));
            //vic.Add(new ViewItem("MarrigeNo", "结婚登记证明号", true));
            //vic.Add(new ViewItem("MarrigeName", "对象姓名", true));
            //vic.Add(new ViewItem("MarrigeIDCardNo", "对象身份证号", true));
            //vic.Add(new ViewItem("Children", "子女情况", true));
            //vic.Add(new ViewItem("IsSingle", "是否独生", true));
            //vic.Add(new ViewItem("ChildName1", "小孩姓名1", true));
            //vic.Add(new ViewItem("ChildIDCardNo1", "小孩身份证号1", true));
            //vic.Add(new ViewItem("ChildAddress1", "小孩户籍地址1", true));
            //vic.Add(new ViewItem("BirthNo1", "小孩出生证号1", true));
            //vic.Add(new ViewItem("BirthDate1", "出生日期1", true));
            //vic.Add(new ViewItem("AdoptNo1", "收养文书号1", true));
            //vic.Add(new ViewItem("ChildName2", "小孩姓名2", true));
            //vic.Add(new ViewItem("ChildIDCardNo2", "小孩身份证号2", true));
            //vic.Add(new ViewItem("ChildAddress2", "小孩户籍地址2", true));
            //vic.Add(new ViewItem("BirthNo2", "小孩出生证号2", true));
            //vic.Add(new ViewItem("BirthDate2", "出生日期2", true));
            //vic.Add(new ViewItem("AdoptNo2", "收养文书号2", true));
            //vic.Add(new ViewItem("ChildName3", "小孩姓名3", true));
            //vic.Add(new ViewItem("ChildIDCardNo3", "小孩身份证号3", true));
            //vic.Add(new ViewItem("ChildAddress3", "小孩户籍地址3", true));
            //vic.Add(new ViewItem("BirthNo3", "小孩出生证号3", true));
            //vic.Add(new ViewItem("BirthDate3", "出生日期3", true));
            //vic.Add(new ViewItem("AdoptNo3", "收养文书号3", true));

            this.PKField = new ViewItem("PKID", "PKID");

            /// <summary>
            /// GridPicker控件用于显示的字段请根据实际情况修改
            /// </summary>
            this.DisplayField            = new ViewItem("Name", "姓名", true);
            this.VisibleColumnCollection = vic;
        }
Пример #8
0
        public UserDefaultView()
            : base("User", "系统用户")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("ChineseName", "中文名", true));
            vic.Add(new ViewItem("FK_Role", "用户组", true, "RoleDefaultView"));
            vic.Add(new ViewItem("IsActive", "是否在职", true));

            this.PKField                 = new ViewItem("PKID", "PKID");
            this.DisplayField            = new ViewItem("Alias", "Alias", true);
            this.VisibleColumnCollection = vic;
        }
Пример #9
0
        public UserTypeDefaultView() : base("UserType", "岗位")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("CreateUser", "创建者"));
            vic.Add(new ViewItem("CreateTime", "创建时间"));
            vic.Add(new ViewItem("ModifyUser", "最后修改者"));
            vic.Add(new ViewItem("ModifyTime", "最后修改时间"));

            this.PKField                 = new ViewItem("PKID", "PKID");
            this.DisplayField            = new ViewItem("Name", "名称", true);
            this.VisibleColumnCollection = vic;
        }
Пример #10
0
        private ViewItemCollection GetQueryItemCollection()
        {
            ViewItemCollection queryItems = new ViewItemCollection();
            ViewItemCollection allItems   = this.BusinessObjectView.VisibleColumnCollection;

            for (int i = 0; i < allItems.Count; i++)
            {
                ViewItem vi = allItems[i];
                if (vi.HasFilter)
                {
                    queryItems.Add(vi);
                }
            }
            return(queryItems);
        }
Пример #11
0
        public UserDataPermission()
            : base("UserDataPermission", "用户权限")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("CreateUser", "创建者"));
            vic.Add(new ViewItem("CreateTime", "创建时间"));
            vic.Add(new ViewItem("ModifyUser", "最后修改者"));
            vic.Add(new ViewItem("ModifyTime", "最后修改时间"));
            vic.Add(new ViewItem("IsValid", "是否有效"));

            this.PKField                 = new ViewItem("PKID", "PKID");
            this.DisplayField            = new ViewItem("Name", "名称", true);
            this.VisibleColumnCollection = vic;
        }
Пример #12
0
        public RoleDefaultView() : base("Role", "用户组")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("RoleCode", "用户组编码", true));
            vic.Add(new ViewItem("FK_UserLevel", "用户级别", true, "UserLevelDefaultView"));
            vic.Add(new ViewItem("CreateUser", "创建者"));
            vic.Add(new ViewItem("CreateTime", "创建时间"));
            vic.Add(new ViewItem("ModifyUser", "最后修改者"));
            vic.Add(new ViewItem("ModifyTime", "最后修改时间"));

            this.PKField                 = new ViewItem("PKID", "PKID");
            this.DisplayField            = new ViewItem("RoleName", "用户组名称", true);
            this.VisibleColumnCollection = vic;
        }
Пример #13
0
        private string GenerateTableHead()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder("<tr class=\"DGHeaderStyle\">");
            sb.Append("<td class=\"DGHeaderCellStyle\" nowrap=\"nowrap\" style=\"width:1%;\"></td>");                   // Checkbox Column

            ViewItemCollection vic = this.BusinessObjectView.VisibleColumnCollection;

            sb.AppendFormat("<td style=\"display:none;\">{0}</td>", vic[0].DisplayName);                // PKID Column

            for (int i = 1; i < vic.Count; i++)
            {
                sb.AppendFormat("<td class=\"DGHeaderCellStyle\">{0}</td>", vic[i].DisplayName);
            }
            sb.Append("</tr>");

            return(sb.ToString());
        }
Пример #14
0
        public CWInfoDefaultView()
            : base("CWInfo", "村务信息")
        {
            ViewItemCollection vic = new ViewItemCollection();

            //vic.Add(new ViewItem("Location", "地理位置", true));
            //vic.Add(new ViewItem("District", "所属行政区", true,""));
            //vic.Add(new ViewItem("TotalPeps", "总人数", true));
            //vic.Add(new ViewItem("IndusValue", "工业总产值", true));
            vic.Add(new ViewItem("VillageChief", "村长", true));

            this.PKField = new ViewItem("PKID", "PKID");

            /// <summary>
            /// GridPicker控件用于显示的字段请根据实际情况修改
            /// </summary>
            this.DisplayField            = new ViewItem("VillageName", "村名称", true);
            this.VisibleColumnCollection = vic;
        }
Пример #15
0
        private HtmlContainerControl GenerateQueryContainer()
        {
            HtmlTable queryTable = new HtmlTable();

            queryTable.ID          = "__queryTable";
            queryTable.CellPadding = 3;
            queryTable.CellSpacing = 0;
            queryTable.Attributes.Add("class", "detailInfo");

            // 生成查询项
            ViewItemCollection queryItems = GetQueryItemCollection();

            for (int i = 0; i < queryItems.Count; i++)
            {
                queryTable.Rows.Add(GenerateQueryItem(queryItems[i], i));
            }

            // 生成查询类型(AND OR)
            queryTable.Rows.Add(GenerateQueryTypeBar());

            return(queryTable);
        }
Пример #16
0
        public CWFamilySpecHelpDefaultView()
            : base("CWFamilySpecHelp", "计生家庭特别扶助统计")
        {
            ViewItemCollection vic = new ViewItemCollection();

            vic.Add(new ViewItem("FK_CWID", "所属村镇", true, "CWInfoDefaultView"));
            vic.Add(new ViewItem("AppName", "申请人姓名", true));
            //vic.Add(new ViewItem("Sex", "性别", true, ""));
            //vic.Add(new ViewItem("HolderPorp", "户口性质", true, ""));
            //vic.Add(new ViewItem("HelpType", "扶助类型", true, ""));
            //vic.Add(new ViewItem("RealMonth", "享受时间", true));
            //vic.Add(new ViewItem("HelpMoney", "享受金额", true));
            vic.Add(new ViewItem("HelpNo", "发放证编号", true));
            vic.Add(new ViewItem("HelpYear", "年份", true));

            this.PKField = new ViewItem("PKID", "PKID");

            /// <summary>
            /// GridPicker控件用于显示的字段请根据实际情况修改
            /// </summary>
            this.DisplayField            = new ViewItem("AppIDCardNo", "身份证号码", true);
            this.VisibleColumnCollection = vic;
        }