예제 #1
0
 partial void DeleteSys_FormPurview_frp(Sys_FormPurview_frp instance);
예제 #2
0
 partial void UpdateSys_FormPurview_frp(Sys_FormPurview_frp instance);
예제 #3
0
 partial void InsertSys_FormPurview_frp(Sys_FormPurview_frp instance);
예제 #4
0
		private void detach_Sys_FormPurview_frp(Sys_FormPurview_frp entity)
		{
			this.SendPropertyChanging();
			entity.Sys_FunctionMaster_fum = null;
		}
예제 #5
0
		private void attach_Sys_FormPurview_frp(Sys_FormPurview_frp entity)
		{
			this.SendPropertyChanging();
			entity.Sys_FormMaster_fom = this;
		}
예제 #6
0
        public bool InsertRecord(Sys_FunctionMaster_fum_Info infoObject)
        {
            using (SIOTSDB_HHZXDataContext db = new SIOTSDB_HHZXDataContext())
            {
                Sys_FunctionMaster_fum fum = new Sys_FunctionMaster_fum();
                try
                {
                    fum = Common.General.CopyObjectValue<Sys_FunctionMaster_fum_Info, Sys_FunctionMaster_fum>(infoObject);

                    if (infoObject.formMaster != null && infoObject.formMaster.Count > 0)
                    {
                        for (int i = 0; i < infoObject.formMaster.Count; i++)
                        {

                            Sys_FormMaster_fom_Info usmInfo = infoObject.formMaster[i];

                            Sys_FormPurview_frp item = new Sys_FormPurview_frp();

                            item.frp_cFunctionNumber = infoObject.fum_cFunctionNumber;
                            item.frp_cFormNumber = usmInfo.fom_cFormNumber;

                            item.frp_cPurviewCode = item.frp_cFunctionNumber + item.frp_cFormNumber;
                            //courseitem.cum_cNumber;
                            //fum.Sys_FormPurview_frps.Add(item);
                            //db.Sys_UserRoles_usrs.InsertOnSubmit(item);
                        }
                    }

                    db.Sys_FunctionMaster_fum.InsertOnSubmit(fum);
                    db.SubmitChanges();
                    return true;
                }
                catch (Exception Ex)
                {
                    throw Ex;
                }
            }
        }