Beispiel #1
0
        internal void InsertScCollection(clsCollection ele)
        {
            //Conexion.StartSession();
            string sql = "INSERT INTO " + clsGlobals.Gesin + "[tblGIScCollection]([ScenarioID],[GICollectionID],[ScCollectionStatus],[ScCollectionComment],[CollectionID]" +
                         ",[GICollectionStatus],[GICollectionComment],[CreatedByUserID],[CreatedDate])VALUES(" + this.ScenarioID + "," + ele.GICollectionID +
                         "," + this.ScCollectionStatus + ",'" + this.ScCollectionComment + "'," + ele.CollectionID + "," + ele.GICollectionStatus + ",'" +
                         ele.GICollectionComment + "'," + clsGlobals.GIPar.UserID + ",GETDATE())";

            Conexion.GDatos.RunSql(sql);
            Conexion.EndSession();
        }
Beispiel #2
0
        public override bool Equals(Object obj)
        {
            clsCollection vObj = obj as clsCollection;

            if (vObj == null)
            {
                return(false);
            }
            else
            {
                return(CollectionID.Equals(vObj.CollectionID));
            }
        }