示例#1
0
        protected override void Save_Add()
        {
            if (this.mLookupID == 0)
            {
                foreach (DataRow Dr in base.mDt_List.Rows)
                {
                    ClsRowProperty Rp = new ClsRowProperty(this.mCurrentUser);
                    Keys Keys = new Keys();

                    Int64 RowPropertyID = Do_Methods.Convert_Int64(Dr["RowPropertyID"]);
                    if (RowPropertyID == 0)
                    { Keys = null; }
                    else
                    { Keys.Add("RowPropertyID", RowPropertyID); }

                    Rp.Load(Keys);

                    Rp.pDr["Code"] = Do_Methods.Convert_String(Dr["Code"]);
                    Rp.pDr["Remarks"] = Do_Methods.Convert_String(Dr["Desc"]);

                    Rp.Save();
                    Dr["RowPropertyID"] = Rp.pDr["RowPropertyID"];
                }
            }
            else
            {
                foreach (DataRow Dr in base.mDt_List.Rows)
                { Dr["LookupID"] = this.mLookupID; }
            }
        }
示例#2
0
 protected override void Setup(ClsCurrentUser pCurrentUser, string pTableName = "", string pViewName = "")
 {
     base.Setup(pCurrentUser, pTableName, pViewName);
     this.mObj_RowProperty = new ClsRowProperty(this.mCurrentUser);
 }