/// <summary>
        /// insert object to DB
        /// </summary>
        public bool Insert_to_DB()
        {
            HssUtility.SQLserver.DB_insert ins = this.Get_DBinsert();
            int count = ins.SaveToDB(Utility.Get_DRWIN_hDB());

            bool flag = count > 0;

            if (flag)
            {
                this.SyncWithDB();
            }

            return(flag);
        }
        internal HssUtility.SQLserver.DB_insert Get_DBinsert()
        {
            HssUtility.SQLserver.DB_insert dbIns = new HssUtility.SQLserver.DB_insert(DTCPositionModelNumber_Mapping.Get_cmdTP());

            dbIns.AddValue("Country", this.Country);                               /*Optional 2*/
            dbIns.AddValue("Issue", this.Issue);                                   /*Optional 3*/
            dbIns.AddValue("RecordYear", this.RecordYear);                         /*Optional 4*/
            dbIns.AddValue("IncomeEvent", this.IncomeEvent);                       /*Optional 5*/
            dbIns.AddValue("ModelNumber", this.ModelNumber.Value);
            dbIns.AddValue("ADRRecordDate", this.ADRRecordDate);                   /*Optional 7*/
            dbIns.AddValue("ORDPayDate", this.ORDPayDate);                         /*Optional 8*/
            dbIns.AddValue("SecurityTypeID", this.SecurityTypeID);                 /*Optional 9*/
            dbIns.AddValue("ADRRecordDate_End", this.ADRRecordDate_End);           /*Optional 10*/
            dbIns.AddValue("AtSourceSumFromDetails", this.AtSourceSumFromDetails); /*Optional 11*/

            return(dbIns);
        }