コード例 #1
0
 private string CountTagInGroups(string igid)
 {
     return
         (NumberExtension.FormatNumber(
              GroupsItems.GetGroupsItems("", GroupsItemsColumns.IgiidColumn,
                                         GroupsItemsTSql.GetGroupsItemsByIgid(igid), "").Rows.Count.ToString()));
 }
コード例 #2
0
    private void InsertProperty(string igid, string iid)
    {
        string    condition = DataExtension.AndConditon(GroupsItemsTSql.GetByIgid(igid), GroupsItemsTSql.GetByIid(iid));
        DataTable dt        = GroupsItems.GetGroupsItems("1", GroupsItemsColumns.IgiidColumn, condition, "");

        if (dt.Rows.Count == 0)
        {
            GroupsItems.InsertGroupsItems(igid, iid, "", DateTime.Now.ToString(), DateTime.Now.ToString(),
                                          DateTime.Now.ToString(), "");
        }
    }
コード例 #3
0
    private void CheckOtherIgid(string iid)
    {
        DataTable dt = GroupsItems.GetGroupsItems("", GroupsItemsColumns.IgidColumn,
                                                  GroupsItemsTSql.GetGroupsItemsByIid(iid), "");

        string listigid = ",";

        for (int i = 0; i < dt.Rows.Count; i++)
        {
            listigid += dt.Rows[i][GroupsColumns.IgidColumn].ToString() + ",";
        }
        //hdIgid.Value = listigid;
        foreach (ListItem item in cbListCates.Items)
        {
            if (listigid.IndexOf("," + item.Value + ",") > -1)
            {
                item.Selected = true;
            }
        }
    }