//=====================================================================
    //  FunctionName : InitalizeDataBind
    /// <summary>
    /// 初始化数据绑定
    /// </summary>
    //=====================================================================
    protected void InitalizeDataBind()
    {
        // 查询报告列表
        FilterReportDataBind((string)Session[ConstantsManager.SESSION_USER_ID], FilterReportList);

        // 主表

        // 初始化用户组(UserGroupID)下拉列表
        UserGroupID.DataSource     = GetDataSource_UserGroupID_AdvanceSearch();
        UserGroupID.DataTextField  = "UserGroupName";
        UserGroupID.DataValueField = "UserGroupID";
        UserGroupID.DataBind();
        UserGroupID.RepeatColumns = 1;

        // 初始化所属单位(SubjectID)下拉列表
        SubjectID.DataSource     = GetDataSource_SubjectID_AdvanceSearch();
        SubjectID.DataTextField  = "DWMC";
        SubjectID.DataValueField = "DWBH";
        SubjectID.DataBind();
        SubjectID.RepeatColumns = 1;

        // 初始化性别(XB)下拉列表
        XB.DataSource     = GetDataSource_XB_AdvanceSearch();
        XB.DataTextField  = "MC";
        XB.DataValueField = "DM";
        XB.DataBind();
        XB.RepeatColumns = 1;

        // 初始化民族(MZ)下拉列表
        MZ.DataSource     = GetDataSource_MZ_AdvanceSearch();
        MZ.DataTextField  = "MC";
        MZ.DataValueField = "DM";
        MZ.DataBind();
        MZ.RepeatColumns = 1;

        // 初始化政治面貌(ZZMM)下拉列表
        ZZMM.DataSource     = GetDataSource_ZZMM_AdvanceSearch();
        ZZMM.DataTextField  = "MC";
        ZZMM.DataValueField = "DM";
        ZZMM.DataBind();
        ZZMM.RepeatColumns = 1;

        // 初始化用户状态(UserStatus)下拉列表
        UserStatus.DataSource     = GetDataSource_UserStatus_AdvanceSearch();
        UserStatus.DataTextField  = "MC";
        UserStatus.DataValueField = "DM";
        UserStatus.DataBind();
        UserStatus.Items.Insert(0, new ListItem("选择用户状态", ""));

        // 一对一相关表
    }
Example #2
0
	public static int Main ()
	{
		XA x = new XA ();

		if (x.get_one () != 1)
			return 1;

		XB b = new XB ();
		if (x.get_one () != 1)
			return 2;
		if (b.get_two () != 2)
			return 3;

		XB [] xb = null;

		return 0;
	}
    //=====================================================================
    //  FunctionName : InitalizeDataBind
    /// <summary>
    /// 初始化数据绑定
    /// </summary>
    //=====================================================================
    protected void InitalizeDataBind()
    {
        // 初始化用户组(UserGroupID)下拉列表
        UserGroupID.DataSource     = GetDataSource_UserGroupID();
        UserGroupID.DataTextField  = "UserGroupName";
        UserGroupID.DataValueField = "UserGroupID";
        UserGroupID.DataBind();

        // 初始化所属单位(SubjectID)下拉列表
        SubjectID.DataSource     = GetDataSource_SubjectID();
        SubjectID.DataTextField  = "DWMC";
        SubjectID.DataValueField = "DWBH";
        SubjectID.DataBind();

        // 初始化性别(XB)下拉列表
        XB.DataSource     = GetDataSource_XB();
        XB.DataTextField  = "MC";
        XB.DataValueField = "DM";
        XB.DataBind();

        // 初始化民族(MZ)下拉列表
        MZ.DataSource     = GetDataSource_MZ();
        MZ.DataTextField  = "MC";
        MZ.DataValueField = "DM";
        MZ.DataBind();

        // 初始化政治面貌(ZZMM)下拉列表
        ZZMM.DataSource     = GetDataSource_ZZMM();
        ZZMM.DataTextField  = "MC";
        ZZMM.DataValueField = "DM";
        ZZMM.DataBind();

        // 初始化用户状态(UserStatus)下拉列表
        UserStatus.DataSource     = GetDataSource_UserStatus();
        UserStatus.DataTextField  = "MC";
        UserStatus.DataValueField = "DM";
        UserStatus.DataBind();
    }
Example #4
0
    static int Main()
    {
        XA x = new XA();

        if (x.get_one() != 1)
        {
            return(1);
        }

        XB b = new XB();

        if (x.get_one() != 1)
        {
            return(2);
        }
        if (b.get_two() != 2)
        {
            return(3);
        }

        XB [] xb = null;

        return(0);
    }
Example #5
0
 public XA(XB b)
 {
 }
Example #6
0
 public VOSC(XA a, XB b)
 {
 }
Example #7
0
        public static void ConflictResolution(FuzzyModel fm, float preserveThr, float ratioThr)
        {
            List <FuzzyEdge> toRemove = new List <FuzzyEdge>();

            foreach (FuzzyEdge AB in fm.GetEdges())
            {
                FuzzyEdge BA    = fm.GetEdge(AB.GetToNode(), AB.GetFromNode());
                float     relAB = 0;
                float     relBA = 0;
                if (BA != null)
                {
                    if (AB.Equals(BA))
                    {
                        toRemove.Add(AB);
                    }
                    if (toRemove.Contains(AB) || toRemove.Contains(BA))
                    {
                        continue;
                    }
                    FuzzyNode A = AB.GetFromNode();
                    FuzzyNode B = AB.GetToNode();
                    // compute relative significance of edge A->B
                    float sigAB = AB.GetFrequencySignificance();
                    float sigAX = 0;
                    foreach (FuzzyEdge AX in A.GetOutEdges())
                    {
                        sigAX += AX.GetFrequencySignificance();
                    }
                    float sigXB = 0;
                    foreach (FuzzyEdge XB in B.GetInEdges())
                    {
                        sigXB += XB.GetFrequencySignificance();
                    }
                    relAB = (0.5F * (sigAB / sigAX)) + (0.5F * (sigAB / sigXB));
                    Console.WriteLine("{0}, Relative significance: {1}", AB.ToString(), relAB);

                    // compute relative significance of edge B->A
                    float sigBA = BA.GetFrequencySignificance();
                    float sigBX = 0;
                    foreach (FuzzyEdge BX in B.GetOutEdges())
                    {
                        sigBX += BX.GetFrequencySignificance();
                    }
                    float sigXA = 0;
                    foreach (FuzzyEdge XA in A.GetInEdges())
                    {
                        sigXA += XA.GetFrequencySignificance();
                    }
                    relBA = (0.5F * (sigBA / sigBX)) + (0.5F * (sigBA / sigXA));
                    Console.WriteLine("{0}, Relative significance: {1}", BA.ToString(), relBA);


                    // Decide preservation
                    if (relAB < preserveThr || relBA < preserveThr)
                    {
                        float ofsAB = Math.Abs(relAB - relBA);
                        if (ofsAB < ratioThr)
                        {
                            toRemove.Add(AB);
                            toRemove.Add(BA);
                        }
                        else
                        {
                            if (relAB > relBA)
                            {
                                toRemove.Add(BA);
                            }
                            else
                            {
                                toRemove.Add(AB);
                            }
                        }
                    }
                }
            }

            foreach (FuzzyEdge fe in toRemove)
            {
                fm.RemoveEdge(fe);
            }
        }
        public XC()
        {
            var xb = new XB();

            xb.Do();
        }