USE [namedatabase]
GO


/****** Object:  StoredProcedure [dbo].[aaaa]    Script Date: 11/30/2019 7:05:46 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

/****** Object:  StoredProcedure [dbo].[aaaa]    Script Date: 04/02/2018 04:12:09 ب.ظ ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO


    Declare @procName varchar(500)
    Declare cur cursor 

    For select [name] from sys.objects where type = 'p'
        open cur
                    fetch next from cur into @procName
                    While @@fetch_status = 0
                    begin
                        exec('drop procedure [' + @procName + ']')
                        fetch next from cur into @procName
                    End
                    close cur
                    deallocate cur
GO

Declare @sql NVARCHAR(MAX) = N'';

SELECT @sql = @sql + N' DROP FUNCTION ' 
                   + QUOTENAME(SCHEMA_NAME(schema_id)) 
                   + N'.' + QUOTENAME(name)
FROM sys.objects
WHERE type_desc LIKE '%FUNCTION%';

Exec sp_executesql @sql
GO


--Drop trigger
DECLARE @TriggerName AS VARCHAR(500)
 -- Drop or Delete All Triggers in a Database in SQL Server 
DECLARE DropTrigger CURSOR FOR
  SELECT TRG.name AS TriggerName
  FROM   sys.triggers TRG
         INNER JOIN sys.tables TBL
                 ON TBL.OBJECT_ID = TRG.parent_id 
OPEN DropTrigger
 FETCH Next FROM DropTrigger INTO @TriggerName 
WHILE @@FETCH_STATUS = 0
  BEGIN
      DECLARE @SQL VARCHAR(MAX)=NULL
      SET @SQL='Drop Trigger ' + @TriggerName
      PRINT 'Trigger ::' + @TriggerName
            + ' Droped Successfully'
      EXEC (@SQL)
      PRINT @SQL
      FETCH Next FROM DropTrigger INTO @TriggerName
  END
CLOSE DropTrigger 
DEALLOCATE DropTrigger
GO

ALTER TABLE tblListeDastrasi
ALTER COLUMN fldNameGroup nvarchar(40) COLLATE Persian_100_CI_AS

DELETE FROM [dbo].[tblListeDastrasi]   
GO

print 'Processed 100 total records'
SET IDENTITY_INSERT [dbo].[tblListeDastrasi] OFF


DROP PROCEDURE [dah].[DateToShow]
GO

DROP PROCEDURE [dah].[DateToShow6Va9Ragham]
GO

DROP PROCEDURE [dah].[DeleteSuperVizor]
GO

DROP PROCEDURE [dah].[HasAmalkardSuperVizor]
GO

DROP PROCEDURE [dah].[HasAmalkardVizitor]
GO

DROP PROCEDURE [dah].[InfoPoorsantVizitor]
GO

DROP PROCEDURE [dah].[LoadSuperVisor]
GO

DROP PROCEDURE [dah].[LoadVaseteArshiveBargashtAzForoosh]
GO

DROP PROCEDURE [dah].[LoadVaseteArshiveForoosh]
GO

DROP PROCEDURE [dah].[LoadVaseteArshiveSanad]
GO

DROP PROCEDURE [dah].[LoadVizitor]
GO

DROP PROCEDURE [dah].[MinMaxDateAnbar]
GO

DROP PROCEDURE [dah].[NameKolMoin]
GO

DROP PROCEDURE [dah].[typeSanad]
GO

DROP PROCEDURE [dah].[Update_SuperVizor]
GO

DROP PROCEDURE [dah].[Update_Vizitor]
GO



/****** Object:  UserDefinedTableType [dbo].[dtAghsat]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtAghsat] AS TABLE(
	[fldRadif] [bigint] NOT NULL,
	[fldShomareVam] [bigint] NOT NULL,
	[fldDateSarResid] [bigint] NULL,
	[fldMablaghGhest] [decimal](18, 0) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtAghsat-Multi]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtAghsat-Multi] AS TABLE(
	[fldRadif] [bigint] NOT NULL,
	[fldShomareVam] [bigint] NOT NULL,
	[fldDateSarResid] [bigint] NULL,
	[fldMablaghGhest] [decimal](18, 4) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtBastanFactorTasvieNashode]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtBastanFactorTasvieNashode] AS TABLE(
	[fldShomareFactor] [bigint] NULL,
	[fldMablagheFactor] [bigint] NOT NULL,
	[fldMandeTalabAzFactor] [bigint] NOT NULL,
	[fldMablagheDaryafti] [bigint] NOT NULL,
	[fldMMablagheBargashti] [bigint] NOT NULL,
	[fldMandeTasfieNashode] [bigint] NOT NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckBazPasShode]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckBazPasShode] AS TABLE(
	[id] [bigint] NULL,
	[fldRadif] [bigint] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldCodeSahebeCheck] [bigint] NULL,
	[fldNameSahebeCheck] [nvarchar](100) NULL,
	[fldDateSarResid] [nvarchar](100) NULL,
	[fldCodeBank] [bigint] NULL,
	[fldNameBank] [nvarchar](100) NULL,
	[fldShobe] [nvarchar](100) NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldShomarePass] [bigint] NULL,
	[fldSanad] [bigint] NULL,
	[fldShomareBazPas] [bigint] NULL,
	[fldSanadBazPas] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckPass]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckPass] AS TABLE(
	[ID] [bigint] NULL,
	[fldShomarePas] [bigint] NULL,
	[fldTozihat] [nvarchar](50) NULL,
	[fldSanad] [bigint] NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckPassMain]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckPassMain] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldSHomareHesab] [bigint] NULL,
	[fldShomarePas] [bigint] NULL,
	[fldTozihat] [nvarchar](50) NULL,
	[fldSanad] [bigint] NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckPassMain2]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckPassMain2] AS TABLE(
	[ID] [int] NOT NULL,
	[fldShomarePas] [bigint] NULL,
	[fldTozihat] [nvarchar](50) NULL,
	[fldSanad] [bigint] NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckPassMain3]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckPassMain3] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldSHomareHesab] [bigint] NULL,
	[fldShomarePas] [bigint] NULL,
	[fldTozihat] [nvarchar](50) NULL,
	[fldSanad] [bigint] NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckPassMain-Multi]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckPassMain-Multi] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldSHomareHesab] [bigint] NULL,
	[fldShomarePas] [bigint] NULL,
	[fldTozihat] [nvarchar](50) NULL,
	[fldSanad] [bigint] NULL,
	[fldMablagh] [decimal](18, 4) NULL,
	[fldCodeSahebeCheck] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckVosool]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckVosool] AS TABLE(
	[fldIDVosool] [bigint] NULL,
	[fldShomareVosool] [bigint] NULL,
	[fldDateVosool] [int] NULL,
	[fldTozihateVosool] [nvarchar](50) NULL,
	[fldVaziat] [nvarchar](15) NULL,
	[fldSanadVosool] [bigint] NULL,
	[fldCodeHesabeVosool] [nvarchar](10) NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtCheckVosool-Multi]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtCheckVosool-Multi] AS TABLE(
	[fldIDVosool] [bigint] NULL,
	[fldShomareVosool] [bigint] NULL,
	[fldDateVosool] [int] NULL,
	[fldTozihateVosool] [nvarchar](50) NULL,
	[fldVaziat] [nvarchar](15) NULL,
	[fldSanadVosool] [bigint] NULL,
	[fldCodeHesabeVosool] [nvarchar](10) NULL,
	[fldMablagh] [decimal](18, 4) NULL,
	[fldCodeSahebeCheck] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtKala]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtKala] AS TABLE(
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[fldNameKala] [nvarchar](100) NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSerial] [nvarchar](20) NULL,
	[fldCodeGroup] [bigint] NOT NULL,
	[fldCodeVahed1] [bigint] NOT NULL,
	[fldCodeVahed2] [bigint] NULL,
	[fldNogheSefaresh] [decimal](18, 0) NULL,
	[fldSharh] [nvarchar](100) NULL,
	[fldTedadJoz] [decimal](18, 0) NULL,
	[fldFeeDarsadKharid] [float] NULL,
	[fldFeeBadAzTakhfif] [money] NULL,
	[fldNerkhePorsantKol] [float] NULL,
	[fldNerkhePorsantJoz] [float] NULL,
	[fldFeeForoosh] [money] NULL,
	[fldPathPic] [nvarchar](max) NULL,
	[fldGhymatMasrafkonande] [decimal](18, 0) NULL,
	[fldIDPrinter] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtListeForoosh]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtListeForoosh] AS TABLE(
	[fldShomareFactor] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtTasfie]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtTasfie] AS TABLE(
	[fldShomareFactor] [bigint] NULL,
	[fldShomareDaryaft] [bigint] NULL,
	[fldMablagh] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtTasfie-Multi]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtTasfie-Multi] AS TABLE(
	[fldShomareFactor] [bigint] NULL,
	[fldShomareDaryaft] [bigint] NULL,
	[fldMablagh] [decimal](18, 4) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtTasfieNew]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtTasfieNew] AS TABLE(
	[fldShomareFactor] [bigint] NULL,
	[fldShomareDaryaft] [bigint] NULL,
	[fldMablagh] [decimal](18, 2) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtTasfieVam]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtTasfieVam] AS TABLE(
	[fldShomareVam] [bigint] NULL,
	[fldShomareGhest] [bigint] NULL,
	[fldShomareDaryaft] [bigint] NULL,
	[fldMablagh] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtTasfieVam-Multi]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtTasfieVam-Multi] AS TABLE(
	[fldShomareVam] [bigint] NULL,
	[fldShomareGhest] [bigint] NULL,
	[fldShomareDaryaft] [bigint] NULL,
	[fldMablagh] [decimal](18, 4) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[dtTasfieVamNew]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[dtTasfieVamNew] AS TABLE(
	[fldShomareVam] [bigint] NULL,
	[fldShomareGhest] [bigint] NULL,
	[fldShomareDaryaft] [bigint] NULL,
	[fldMablagh] [decimal](18, 2) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[LocationTableType]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[LocationTableType] AS TABLE(
	[LocationName] [nvarchar](50) NULL,
	[CostRate] [int] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tbl1]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[tbl1] AS TABLE(
	[fld1] [varchar](50) NULL,
	[fld2] [varchar](50) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckDaryafti]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckDaryafti] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckDaryafti-Multi]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckDaryafti-Multi] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldMablagh] [decimal](18, 4) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckDaryaftiNew]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckDaryaftiNew] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [nvarchar](15) NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckDaryaftiNewer]    Script Date: 09/25/2022 02:54:22 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckDaryaftiNewer] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldSharhedaryaft] [nvarchar](70) NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckDaryaftiNewer-Multi]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckDaryaftiNewer-Multi] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldSharhedaryaft] [nvarchar](70) NULL,
	[fldMablagh] [decimal](18, 4) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckDaryaftiNewerNew]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckDaryaftiNewerNew] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldSharhedaryaft] [nvarchar](70) NULL,
	[fldMablagh] [decimal](18, 2) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckPardakhti]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckPardakhti] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldMablagh] [decimal](18, 0) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckPardakhti-Multi]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckPardakhti-Multi] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldMablagh] [decimal](18, 4) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckPardakhtiNew]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckPardakhtiNew] AS TABLE(
	[ID] [int] NULL,
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldDateSarResid] [int] NULL,
	[fldCodeBank] [int] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldMablagh] [decimal](18, 2) NULL,
	[fldCodeSahebeCheck] [nchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblCheckVagozari]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tblCheckVagozari] AS TABLE(
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tblDaftarCheck]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tblDaftarCheck] AS TABLE(
	[fldShomareCheck] [bigint] NULL,
	[fldShomareHesab] [bigint] NULL,
	[fldShobe] [nvarchar](40) NULL,
	[fldCodeBank] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[TestEmpType]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[TestEmpType] AS TABLE(
	[ID] [int] NULL,
	[Name] [varchar](3000) NULL,
	[Address] [varchar](8000) NULL,
	[Operation] [smallint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[TestEmpType2]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[TestEmpType2] AS TABLE(
	[ID] [int] NULL,
	[Name] [varchar](3000) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeBargashtAzForoosh]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeBargashtAzForoosh] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 2) NULL,
	[fldFeeKol] [decimal](18, 2) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 2) NULL,
	[fldArzeshAfzode] [decimal](18, 2) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 2) NULL,
	[fldMablaghKhales] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForoosh]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForoosh] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL
)
GO
CREATE TYPE [dbo].[tpRizeForoosh2] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForoosh_Amani]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForoosh_Amani] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL,
	[fldCodeAnbar] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForoosh_Amani2]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForoosh_Amani2] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL,
	[fldCodeAnbar] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForoosh_Enteghal]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForoosh_Enteghal] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForoosh_EnteghalNew]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForoosh_EnteghalNew] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForoosh_EnteghalNew-Multi]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForoosh_EnteghalNew-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForoosh-Multi]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForoosh-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForooshNew]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForooshNew] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForooshNew-Multi]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForooshNew-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForooshNewNew]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForooshNewNew] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL,
	[fldEshantion] [nvarchar](13) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForooshNewNewNew]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForooshNewNewNew] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 2) NULL,
	[fldFeeKol] [decimal](18, 2) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 2) NULL,
	[fldArzeshAfzode] [decimal](18, 2) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 2) NULL,
	[fldMablaghKhales] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL,
	[fldEshantion] [nvarchar](13) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeForooshNewNewNew-Multi]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeForooshNewNewNew-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL,
	[fldEshantion] [nvarchar](13) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid] AS TABLE(
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_Amani]    Script Date: 09/25/2022 02:54:23 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_Amani] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareFactor] [bigint] NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldCodeTafzili] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_Enteghal]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_Enteghal] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareFactor] [bigint] NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_EnteghalNew]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_EnteghalNew] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareFactor] [bigint] NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_EnteghalNew-Multi]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_EnteghalNew-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareFactor] [bigint] NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_EnteghalNewNew]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_EnteghalNewNew] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareFactor] [bigint] NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDateEngheza] [bigint] NULL,
	[fldCodeAnbar] [int] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_FactorKharid]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_FactorKharid] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldShomareEnteghal] [bigint] NULL,
	[fldHamloNaghl] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_FactorKharid_Final]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_FactorKharid_Final] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 2) NULL,
	[fldFeeKol] [decimal](18, 2) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 2) NULL,
	[fldArzeshAfzode] [decimal](18, 2) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 2) NULL,
	[fldMablaghKhales] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldHamloNaghl] [bigint] NULL,
	[fldGhymatMasrafkonande] [decimal](18, 2) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_FactorKharid_Final2]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_FactorKharid_Final2] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldHamloNaghl] [bigint] NULL,
	[fldGhymatMasrafkonande] [decimal](18, 0) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_FactorKharid_FinalNew]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_FactorKharid_FinalNew] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 2) NULL,
	[fldFeeKol] [decimal](18, 2) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 2) NULL,
	[fldArzeshAfzode] [decimal](18, 2) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 2) NULL,
	[fldMablaghKhales] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldHamloNaghl] [bigint] NULL,
	[fldGhymatMasrafkonande] [decimal](18, 2) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_FactorKharid_FinalNewMulti]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_FactorKharid_FinalNewMulti] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 2) NULL,
	[fldFeeKol] [decimal](18, 2) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 2) NULL,
	[fldArzeshAfzode] [decimal](18, 2) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 2) NULL,
	[fldMablaghKhales] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldHamloNaghl] [decimal](18, 2) NULL,
	[fldGhymatMasrafkonande] [decimal](18, 2) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_FactorKharid_FinalNew-Multi]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_FactorKharid_FinalNew-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldHamloNaghl] [decimal](18, 4) NULL,
	[fldGhymatMasrafkonande] [decimal](18, 4) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_FactorKharid_FinalNewNew]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_FactorKharid_FinalNewNew] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 2) NULL,
	[fldFeeKol] [decimal](18, 2) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 2) NULL,
	[fldArzeshAfzode] [decimal](18, 2) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 2) NULL,
	[fldMablaghKhales] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldHamloNaghl] [decimal](18, 2) NULL,
	[fldGhymatMasrafkonande] [decimal](18, 2) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_MojodiEbtedaDoreh]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_MojodiEbtedaDoreh] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldShomareEnteghal] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeKharid_MojodiEbtedaDorehMulti]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeKharid_MojodiEbtedaDorehMulti] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 2) NULL,
	[fldFeeKol] [decimal](18, 2) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 2) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 2) NULL,
	[fldArzeshAfzode] [decimal](18, 2) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 2) NULL,
	[fldMablaghKhales] [decimal](18, 2) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldShomareEnteghal] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizePishForoosh]    Script Date: 09/25/2022 02:54:24 ب.ظ ******/
CREATE TYPE [dbo].[tpRizePishForoosh] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [decimal](18, 2) NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldEshantion] [nvarchar](13) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizePishForoosh-Multi]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpRizePishForoosh-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldDarsadTakhfif] [decimal](18, 4) NULL,
	[fldMablaghTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldArzeshAfzode] [decimal](18, 4) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldEshantion] [nvarchar](13) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeTolid]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeTolid] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareTolid] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCartonAvalie] [nvarchar](10) NULL,
	[fldTedadJozAvalie] [decimal](18, 2) NULL,
	[fldTedadCartonNahaei] [nvarchar](10) NULL,
	[fldTedadJozNahaei] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDarsdeTakhfif] [decimal](18, 0) NULL,
	[fldMablagheTakhfif] [decimal](18, 0) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeTolid2]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeTolid2] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareTolid] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCartonAvalie] [nvarchar](10) NULL,
	[fldTedadJozAvalie] [decimal](18, 2) NULL,
	[fldTedadCartonNahaei] [nvarchar](10) NULL,
	[fldTedadJozNahaei] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDarsdeTakhfif] [decimal](18, 0) NULL,
	[fldMablagheTakhfif] [decimal](18, 0) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeTolid2-Multi]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeTolid2-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareTolid] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCartonAvalie] [nvarchar](10) NULL,
	[fldTedadJozAvalie] [decimal](18, 4) NULL,
	[fldTedadCartonNahaei] [nvarchar](10) NULL,
	[fldTedadJozNahaei] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDarsdeTakhfif] [decimal](18, 4) NULL,
	[fldMablagheTakhfif] [decimal](18, 4) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeTolidNew]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeTolidNew] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareTolid] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCartonAvalie] [nvarchar](10) NULL,
	[fldTedadJozAvalie] [decimal](18, 2) NULL,
	[fldTedadCartonNahaei] [nvarchar](10) NULL,
	[fldTedadJozNahaei] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldHazineTabdil] [decimal](18, 2) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeTolidNewNew]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeTolidNewNew] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareTolid] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCartonAvalie] [nvarchar](10) NULL,
	[fldTedadJozAvalie] [decimal](18, 2) NULL,
	[fldTedadCartonNahaei] [nvarchar](10) NULL,
	[fldTedadJozNahaei] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 2) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDarsdeTakhfif] [decimal](18, 0) NULL,
	[fldMablagheTakhfif] [decimal](18, 0) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpRizeTolidNewNew-Multi]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpRizeTolidNewNew-Multi] AS TABLE(
	[fldShomareSanad] [bigint] NULL,
	[fldShomareTolid] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCartonAvalie] [nvarchar](10) NULL,
	[fldTedadJozAvalie] [decimal](18, 4) NULL,
	[fldTedadCartonNahaei] [nvarchar](10) NULL,
	[fldTedadJozNahaei] [decimal](18, 4) NULL,
	[fldFeeJoz] [decimal](18, 4) NULL,
	[fldFeeYekCarton] [decimal](18, 4) NULL,
	[fldFeeKol] [decimal](18, 4) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 4) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 4) NULL,
	[fldMablaghKhales] [decimal](18, 4) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldDarsdeTakhfif] [decimal](18, 4) NULL,
	[fldMablagheTakhfif] [decimal](18, 4) NULL,
	[fldDateEngheza] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpSanadEbteda_Ashkas]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpSanadEbteda_Ashkas] AS TABLE(
	[fldSanad] [varchar](50) NULL,
	[fldDay] [varchar](50) NULL,
	[fldMonth] [varchar](50) NULL,
	[fldYear] [varchar](50) NULL,
	[fldCodeKol] [varchar](50) NULL,
	[fldCodeMoin] [varchar](50) NULL,
	[fldCodeTafzili] [varchar](50) NULL,
	[fldBedehkar] [decimal](18, 0) NULL,
	[fldBestankar] [decimal](18, 0) NULL,
	[fldRadif] [varchar](50) NULL,
	[fldDate] [int] NULL,
	[fldSharh] [varchar](50) NULL,
	[fldMoinKamel] [varchar](50) NULL,
	[fldCodeNoeTafzili] [varchar](50) NULL,
	[fldType] [varchar](50) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[tpSanadEbteda_AshkasMulti]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[tpSanadEbteda_AshkasMulti] AS TABLE(
	[fldSanad] [varchar](50) NULL,
	[fldDay] [varchar](50) NULL,
	[fldMonth] [varchar](50) NULL,
	[fldYear] [varchar](50) NULL,
	[fldCodeKol] [varchar](50) NULL,
	[fldCodeMoin] [varchar](50) NULL,
	[fldCodeTafzili] [varchar](50) NULL,
	[fldBedehkar] [decimal](18, 4) NULL,
	[fldBestankar] [decimal](18, 4) NULL,
	[fldRadif] [varchar](50) NULL,
	[fldDate] [int] NULL,
	[fldSharh] [varchar](50) NULL,
	[fldMoinKamel] [varchar](50) NULL,
	[fldCodeNoeTafzili] [varchar](50) NULL,
	[fldType] [varchar](50) NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[typeKharidtest]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[typeKharidtest] AS TABLE(
	[fldShomareSanad] [bigint] NOT NULL,
	[fldShomareFactor] [bigint] NOT NULL,
	[fldCodeVasete] [bigint] NULL,
	[fldCodeTafsili] [bigint] NULL,
	[fldCodeUser] [bigint] NULL,
	[fldRadif] [int] NOT NULL,
	[fldCodeAnbar] [bigint] NOT NULL,
	[fldCodeKala] [bigint] NOT NULL,
	[fldSharhKala] [nvarchar](250) NULL,
	[fldTedadCarton] [nvarchar](10) NULL,
	[fldTedadJoz] [decimal](18, 2) NULL,
	[fldFeeJoz] [decimal](18, 0) NULL,
	[fldFeeYekCarton] [decimal](18, 0) NULL,
	[fldFeeKol] [decimal](18, 0) NULL,
	[fldDarsadTakhfif] [smallint] NULL,
	[fldMablaghTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed1BadAzTakhfif] [decimal](18, 0) NULL,
	[fldFeeVahed2BadAzTakhfif] [decimal](18, 0) NULL,
	[fldArzeshAfzode] [decimal](18, 0) NULL,
	[fldFeeKolBadAzTakhfif] [decimal](18, 0) NULL,
	[fldMablaghKhales] [decimal](18, 0) NULL,
	[fldType] [nvarchar](20) NULL,
	[fldDate] [bigint] NOT NULL,
	[fldTime] [nvarchar](10) NULL,
	[fldShomareEnteghal] [bigint] NULL
)
GO
/****** Object:  UserDefinedTableType [dbo].[ZT_CodeNumbers]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
CREATE TYPE [dbo].[ZT_CodeNumbers] AS TABLE(
	[CodeNumber] [bigint] NOT NULL
)
GO
/****** Object:  UserDefinedFunction [dbo].[fn_TablesLastUpdateDate]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


CREATE FUNCTIOn [dbo].[fn_TablesLastUpdateDate](@Date NVARCHAR(20))

RETURNS @table TABLE(TableName NVARCHAR(40), LastUpdated Datetime)

AS

BEGIN


IF(@Date='') OR (@Date Is Null) OR (@Date='0')

    BEGIN
        INSERT INTO @table
        SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM 
        (
            SELECT  B.NAME AS 'TABLENAME', MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED
            FROM    SYS.SYSINDEXES AS A
                    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID
            WHERE   B.TYPE = 'U'  AND STATS_DATE (ID,INDID) IS NOT NULL 
            GROUP BY B.NAME
        ) AS A
        ORDER BY LASTUPDATED DESC
    END
ELSE

    BEGIN
        INSERT INTO @table
        SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM 
        (
            SELECT  B.NAME AS 'TABLENAME', MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED,
                    CONVERT(VARCHAR, MAX(STATS_DATE (ID,INDID)), 103) as Date
            FROM    SYS.SYSINDEXES AS A
                    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID
            WHERE   B.TYPE = 'U'  AND STATS_DATE (ID,INDID) IS NOT NULL 
            GROUP BY B.NAME
        ) AS A
        WHERE Date=@Date
        ORDER BY LASTUPDATED DESC
    END
RETURN

END

GO
/****** Object:  UserDefinedFunction [dbo].[ZF_GetAccessableAshkhasCode]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create FUNCTION [dbo].[ZF_GetAccessableAshkhasCode]
(	
	-- Add the parameters for the function here
	@userCode bigint
)
RETURNS @output TABLE(fldCode bigint 
) 
begin
  --Declare @value nvarchar(100)
  --set @value =( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS')

 Declare @value nvarchar(100)
  --set @value =( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS')
  if ( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS') = 'True'
  Begin -- Limitation Active

    declare @groups table(fldCode bigint)
	 insert into @groups(fldCode)
	 select fldGroupCode from tblGroupAshkhasAccess where fldUserCode = @usercode

	 insert into @output(fldCode)
	 select fldCodeTafzili from tblTafzili as t
	 inner join @groups as g on convert(nvarchar(100),t.fldCodeGroup) like convert(nvarchar(100),g.fldCode) + '%'
	 group by fldCodeTafzili
	 order by CONVERT(varchar,fldCodeTafzili )


  End
  else
  Begin -- Limitation DeActive
	insert into @output(fldCode)
	select fldCodeTafzili from tblTafzili
	order by CONVERT(varchar,fldCodeTafzili )
  End

  RETURN 
end

GO
/****** Object:  UserDefinedFunction [dbo].[ZF_GetAccessableGroupAshkhasCode]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create FUNCTION [dbo].[ZF_GetAccessableGroupAshkhasCode]
(	
	-- Add the parameters for the function here
	@userCode bigint
)
RETURNS @output TABLE(fldCode bigint 
) 
begin
  --Declare @value nvarchar(100)
  --set @value =( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS')

  if (( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS') = 'True')
  Begin -- Limitation Active

		declare @tbl table(fldCode bigint) -- in fact -> fldCodeGroupKala 
		insert @tbl(fldCode)
		select fldGroupCode from tblGroupAshkhasAccess where fldUserCode = @userCode 
		
		insert @output(fldCode)
		select fldGroupId from tblGroupAshkhas 
		where  fldGroupId in(select fldCode from @tbl)
		order by CONVERT(varchar,fldGroupId )

  End
  else
  Begin -- Limitation DeActive

		insert @output(fldCode)
		select fldGroupId from tblGroupAshkhas
		order by CONVERT(varchar,fldGroupId )

  End

  RETURN 
end

GO
/****** Object:  UserDefinedFunction [dbo].[ZF_SplitString]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


CREATE FUNCTION [dbo].[ZF_SplitString] 
( 
    @string NVARCHAR(MAX), 
    @delimiter CHAR(1) 
) 
RETURNS @output TABLE(number bigint 
) 
BEGIN 
 
    DECLARE @start INT, @end INT 
    SELECT @start = 1, @end = CHARINDEX(@delimiter, @string) 
 
    WHILE @start < LEN(@string) + 1 BEGIN 
        IF @end = 0  
            SET @end = LEN(@string) + 1
       
        INSERT INTO @output (number)  
        VALUES(SUBSTRING(@string, @start, @end - @start)) 
        SET @start = @end + 1 
        SET @end = CHARINDEX(@delimiter, @string, @start)
        
    END 
 
    RETURN 
 
END

GO
/****** Object:  UserDefinedFunction [dbo].[SplitString]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE FUNCTION [dbo].[SplitString]
(
  @List     nvarchar(max),
  @Delim    nvarchar(255)
)
RETURNS TABLE WITH SCHEMABINDING
AS
   RETURN ( WITH n(n) AS (SELECT 1 UNION ALL SELECT n+1 
       FROM n WHERE n <= LEN(@List))
       SELECT [Value] = SUBSTRING(@List, n, 
       CHARINDEX(@Delim, @List + @Delim, n) - n)
       FROM n WHERE n <= LEN(@List)
      AND SUBSTRING(@Delim + @List, n, DATALENGTH(@Delim)/2) = @Delim
   );

GO
/****** Object:  UserDefinedFunction [dbo].[translateFunction]    Script Date: 09/25/2022 02:54:25 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE FUNCTION [dbo].[translateFunction]
(	
	-- Add the parameters for the function here
	@Language nvarchar(10),
	@CodeMessage bigint
)
RETURNS TABLE 
AS
RETURN 
(
	-- Add the SELECT statement with parameter references here
	SELECT fldMatn
					FROM  tblTranslateMain 
						where fldLanguage=@Language and fldCode=@CodeMessage
)

GO




/****** Object:  View [dbo].[Join_TblTell_TblTafzili]    Script Date: 01/16/2019 10:35:05 ق.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO



DROP VIEW [viewFilter_Tbl_Tafsili_in_Form_Enteghal_Kala];
GO

DROP VIEW [Join_TblTell_TblTafzili];
GO

DROP VIEW [lstlistKala];
GO

DROP VIEW [View_2];
GO

DROP VIEW [View_ListAshkhas_In_ReportFactorForosh_AliJahangard];
GO

DROP VIEW [View_TblChap];
GO

DROP VIEW [viewGetAnbarForComboBox];
GO

DROP VIEW [viewGetListEshantionGroupTabalaghtis];
GO

DROP VIEW [viewGetListEshantionTabalaghti];
GO

DROP VIEW [viewGridForoosh];
GO

DROP VIEW [viewListBarcodeKala];
GO

DROP VIEW [viewListKalaInFactorForoosh];
GO

DROP VIEW [viewListKalaInFactorForooshByFldCodeGroup];
GO

DROP VIEW [viewListSmallKala];
GO

DROP VIEW [viewLoadVizitor];
GO

DROP VIEW [viewReportListAshkhasByIN];
GO

DROP VIEW [viewRizeForooshEhsan];
GO

DROP VIEW [viewShowListKala];
GO

DROP VIEW [viewShowListSmallGroupKala];
GO

DROP VIEW [viewtestforoosh];
GO


DROP VIEW [viewtestShomaretel];
GO

DROP VIEW [viwListeCheckHayePasNashode];
GO



CREATE VIEW [dbo].[Join_TblTell_TblTafzili]
AS
SELECT        TOP (100) PERCENT dbo.tblTafzili.fldSharheTafzili, dbo.tblTafzili.fldCodeTafzili, dbo.tblDaftarcheTell.fldShomare, dbo.tblTafzili.fldCodeMeli, 
                         dbo.tblTafzili.fldAddress
FROM            dbo.tblDaftarcheTell INNER JOIN
                         dbo.tblTafzili ON dbo.tblDaftarcheTell.fldCodeTafzili = dbo.tblTafzili.fldCodeTafzili
GROUP BY dbo.tblTafzili.fldSharheTafzili, dbo.tblTafzili.fldCodeTafzili, dbo.tblDaftarcheTell.fldShomare, dbo.tblTafzili.fldCodeMeli, dbo.tblTafzili.fldAddress



GO
/****** Object:  View [dbo].[lstlistKala]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[lstlistKala]
AS
SELECT        fldNameKala, fldCodeKala
FROM            dbo.tblKala



GO
/****** Object:  View [dbo].[View_2]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[View_2]
AS
SELECT DISTINCT 
                         dbo.tblTafzili.fldCodeGroup, dbo.tblGroupAshkhas.fldGroupId, dbo.tblGroupAshkhas.fldGroupName, dbo.tblDaftarcheTell.fldShomare, 
                         dbo.tblTafzili.fldCodeTafzili
FROM            dbo.tblGroupAshkhas INNER JOIN
                         dbo.tblTafzili ON dbo.tblGroupAshkhas.fldGroupId = dbo.tblTafzili.fldCodeGroup INNER JOIN
                         dbo.tblDaftarcheTell ON CONVERT(int, dbo.tblTafzili.fldCodeTafzili) = CONVERT(int, dbo.tblDaftarcheTell.fldCodeTafzili)



GO
/****** Object:  View [dbo].[View_ListAshkhas_In_ReportFactorForosh_AliJahangard]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[View_ListAshkhas_In_ReportFactorForosh_AliJahangard]
AS
SELECT        dbo.tblTafzili.fldSharheTafzili, dbo.tblTafzili.fldCodeTafzili, dbo.tblTafzili.fldCodeGroup, dbo.tblTafzili.fldOstan, dbo.tblTafzili.fldCity, dbo.tblTafzili.fldAddress, 
                         dbo.tblTafzili.fldShomareHesab, dbo.tblTafzili.fldCodeMeli, dbo.tblTafzili.fldCodeEghtesadi, dbo.tblTafzili.fldCodePosti, dbo.tblTafzili.fldShomareSabt, 
                         dbo.tblTafzili.fldSaghfeEtebar, dbo.tblTafzili.fldBlackList, dbo.tblTafzili.fldSharhBlackList, dbo.tblTafzili.fldDate1, dbo.tblTafzili.fldDate2, dbo.tblDaftarcheTell.fldSms, 
                         dbo.tblDaftarcheTell.fldShomare
FROM            dbo.tblTafzili LEFT OUTER JOIN
                         dbo.tblDaftarcheTell ON dbo.tblTafzili.fldCodeTafzili = dbo.tblDaftarcheTell.fldCodeTafzili



GO
/****** Object:  View [dbo].[View_TblChap]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[View_TblChap]
AS
SELECT        fldNameMoassese, fldTozihateBala, fldAdress, fldPasafhe, fldCodeEghtesadi, fldShomareSabt, fldCodePosti, fldTell
FROM            dbo.tblChap



GO
/****** Object:  View [dbo].[viewFilter_Tbl_Tafsili_in_Form_Enteghal_Kala]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewFilter_Tbl_Tafsili_in_Form_Enteghal_Kala]
AS
SELECT DISTINCT fldCodeTafzili, fldSharheTafzili,fldAddress ,fldGroupName 
FROM            dbo.tblTafzili
inner join tblGroupAshkhas on tblGroupAshkhas.fldGroupId = tblTafzili.fldCodeGroup


GO
/****** Object:  View [dbo].[viewGetAnbarForComboBox]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewGetAnbarForComboBox]
AS
SELECT        fldCode, fldNameAnbar
FROM            dbo.tblAnbar



GO
/****** Object:  View [dbo].[viewGetListEshantionGroupTabalaghtis]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewGetListEshantionGroupTabalaghtis]
AS
SELECT        dbo.tblEshantionGroupTabaghati.fldCodeGroupKala, dbo.tblEshantionGroupTabaghati.fldShomareTabaghe, dbo.tblEshantionGroupTabaghati.fldTedadForoosh, 
                         dbo.tblEshantionGroupTabaghati.fldCodeKalaEshantion, dbo.tblEshantionGroupTabaghati.fldTedadEshantion, dbo.tblKala.fldNameKala
FROM            dbo.tblEshantionGroupTabaghati INNER JOIN
                         dbo.tblKala ON dbo.tblEshantionGroupTabaghati.fldCodeKalaEshantion = dbo.tblKala.fldCodeKala INNER JOIN
                         dbo.tblGroupKala ON dbo.tblEshantionGroupTabaghati.fldCodeGroupKala = dbo.tblGroupKala.fldGroupId



GO
/****** Object:  View [dbo].[viewGetListEshantionTabalaghti]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewGetListEshantionTabalaghti]
AS
SELECT        dbo.tblEshantionTabaghati.fldShomareTabaghe, dbo.tblEshantionTabaghati.fldTedadForoosh, dbo.tblEshantionTabaghati.fldTedadEshantion, 
                         dbo.tblEshantionTabaghati.fldCodeKalaEshantion, dbo.tblKala.fldNameKala AS fldNameKalaEshantion, tblKala_1.fldCodeKala AS fldCodeKalaForoosh, 
                         tblKala_1.fldNameKala AS fldNameKalaForoosh
FROM            dbo.tblEshantionTabaghati INNER JOIN
                         dbo.tblKala ON dbo.tblEshantionTabaghati.fldCodeKalaEshantion = dbo.tblKala.fldCodeKala INNER JOIN
                         dbo.tblKala AS tblKala_1 ON dbo.tblEshantionTabaghati.fldCodeKalaForoosh = tblKala_1.fldCodeKala



GO
/****** Object:  View [dbo].[viewGridForoosh]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewGridForoosh]
AS
SELECT        dbo.tblRizeForoosh.fldRadif, dbo.tblRizeForoosh.fldCodeKala, dbo.tblKala.fldNameKala, dbo.tblRizeForoosh.fldSharhKala, dbo.tblRizeForoosh.fldTedadCarton, 
                         dbo.tblRizeForoosh.fldTedadJoz, dbo.tblRizeForoosh.fldFeeJoz, dbo.tblRizeForoosh.fldFeeYekCarton, dbo.tblRizeForoosh.fldFeeKol, 
                         dbo.tblRizeForoosh.fldDarsadTakhfif, dbo.tblRizeForoosh.fldMablaghTakhfif, dbo.tblRizeForoosh.fldFeeVahed1BadAzTakhfif, 
                         dbo.tblRizeForoosh.fldFeeVahed2BadAzTakhfif, dbo.tblRizeForoosh.fldArzeshAfzode, dbo.tblRizeForoosh.fldFeeKolBadAzTakhfif, 
                         dbo.tblRizeForoosh.fldMablaghKhales, dbo.tblRizeForoosh.fldCodeAnbar, tblVahed_2.fldNameVahed, dbo.tblVahed.fldNameVahed AS fldNameVahed2, 
                         dbo.tblAnbar.fldNameAnbar, tblVahed_2.ID AS fldVahed1Code, dbo.tblVahed.ID AS fldVahed2Code, dbo.tblKala.fldGhymatMasrafkonande
FROM            dbo.tblAnbar INNER JOIN
                         dbo.tblRizeForoosh ON dbo.tblAnbar.fldCode = dbo.tblRizeForoosh.fldCodeAnbar INNER JOIN
                         dbo.tblKala ON dbo.tblRizeForoosh.fldCodeKala = dbo.tblKala.fldCodeKala INNER JOIN
                         dbo.tblVahed AS tblVahed_2 ON dbo.tblKala.fldCodeVahed1 = tblVahed_2.ID INNER JOIN
                         dbo.tblVahed ON dbo.tblKala.fldCodeVahed2 = dbo.tblVahed.ID
WHERE        (dbo.tblRizeForoosh.fldShomareFactor = 30)



GO
/****** Object:  View [dbo].[viewListBarcodeKala]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewListBarcodeKala]
AS
SELECT        fldCodeKala, fldSerial
FROM            dbo.tblKala
WHERE        (fldSerial <> '0') AND (fldSerial <> '')



GO
/****** Object:  View [dbo].[viewListKalaInFactorForoosh]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewListKalaInFactorForoosh]
AS
SELECT        dbo.tblKala.fldCodeKala, dbo.tblKala.fldNameKala, dbo.tblVahed.fldNameVahed, tblVahed_1.fldNameVahed AS fldNameVahed2, dbo.tblKala.fldFeeForoosh
FROM            dbo.tblKala INNER JOIN
                         dbo.tblVahed ON dbo.tblKala.fldCodeVahed1 = dbo.tblVahed.ID INNER JOIN
                         dbo.tblVahed AS tblVahed_1 ON dbo.tblKala.fldCodeVahed2 = tblVahed_1.ID



GO
/****** Object:  View [dbo].[viewListKalaInFactorForooshByFldCodeGroup]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewListKalaInFactorForooshByFldCodeGroup]
AS
SELECT        dbo.tblKala.fldCodeKala, dbo.tblKala.fldNameKala, dbo.tblVahed.fldNameVahed, tblVahed_1.fldNameVahed AS fldNameVahed2, dbo.tblKala.fldFeeForoosh, 
                         dbo.tblKala.fldCodeGroup
FROM            dbo.tblKala INNER JOIN
                         dbo.tblVahed ON dbo.tblKala.fldCodeVahed1 = dbo.tblVahed.ID INNER JOIN
                         dbo.tblVahed AS tblVahed_1 ON dbo.tblKala.fldCodeVahed2 = tblVahed_1.ID



GO
/****** Object:  View [dbo].[viewListSmallKala]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewListSmallKala]
AS
SELECT        fldNameKala, fldCodeKala
FROM            dbo.tblKala



GO
/****** Object:  View [dbo].[viewLoadVizitor]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewLoadVizitor]
AS
SELECT        dbo.tblTafzili.fldCodeTafzili, dbo.tblTafzili.fldSharheTafzili, dbo.tblTafzili.fldPoorsant, dbo.tblTafzili.fldNoeMohasebePoorsant, 
                         CASE WHEN tblTafzili.fldNoeMohasebePoorsant = 1 THEN 'فروش' WHEN tblTafzili.fldNoeMohasebePoorsant = 2 THEN 'واریز' WHEN tblTafzili.fldNoeMohasebePoorsant
                          = 3 THEN 'هدفمند' END AS fldSharheMohasebe, dbo.tblTafzili.fldCodeSuperVisor AS CodeSuperVisor, tblTafzili_1.fldSharheTafzili AS fldNameSuperVizor, 
                         dbo.tblTafzili.ID
FROM            dbo.tblTafzili INNER JOIN
                         dbo.tblTafzili AS tblTafzili_1 ON dbo.tblTafzili.fldCodeSuperVisor = tblTafzili_1.fldCodeTafzili
WHERE        (dbo.tblTafzili.fldNoeVizitor = 2)



GO
/****** Object:  View [dbo].[viewReportListAshkhasByIN]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewReportListAshkhasByIN]
AS
SELECT DISTINCT 
                         TOP (100) PERCENT dbo.tblTafzili.fldCodeGroup, dbo.tblGroupAshkhas.fldGroupName, dbo.tblDaftarcheTell.fldShomare, dbo.tblTafzili.fldCodeTafzili, 
                         dbo.tblTafzili.fldSharheTafzili
FROM            dbo.tblGroupAshkhas INNER JOIN
                         dbo.tblTafzili ON dbo.tblGroupAshkhas.fldGroupId = dbo.tblTafzili.fldCodeGroup LEFT OUTER JOIN
                         dbo.tblDaftarcheTell ON CONVERT(int, dbo.tblTafzili.fldCodeTafzili) = CONVERT(int, dbo.tblDaftarcheTell.fldCodeTafzili)
GROUP BY dbo.tblTafzili.fldCodeGroup, dbo.tblGroupAshkhas.fldGroupId, dbo.tblGroupAshkhas.fldGroupName, dbo.tblDaftarcheTell.fldShomare, dbo.tblTafzili.fldCodeTafzili, 
                         dbo.tblTafzili.fldSharheTafzili
HAVING        (dbo.tblTafzili.fldCodeGroup IN (108, 100, 105))
ORDER BY dbo.tblGroupAshkhas.fldGroupName, dbo.tblTafzili.fldSharheTafzili



GO
/****** Object:  View [dbo].[viewRizeForooshEhsan]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewRizeForooshEhsan]
AS
SELECT        dbo.tblRizeForoosh.fldShomareSanad, dbo.tblRizeForoosh.fldShomareFactor, dbo.tblRizeForoosh.fldCodeVasete, dbo.tblRizeForoosh.fldCodeTafsili, 
                         dbo.tblTafzili.fldSharheTafzili, dbo.tblRizeForoosh.fldCodeAnbar, dbo.tblAnbar.fldNameAnbar, dbo.tblRizeForoosh.fldCodeKala, dbo.tblKala.fldNameKala, 
                         dbo.tblKala.fldGhymatMasrafkonande, dbo.tblRizeForoosh.fldSharhKala, dbo.tblRizeForoosh.fldTedadCarton, dbo.tblRizeForoosh.fldTedadJoz, 
                         dbo.tblRizeForoosh.fldFeeJoz, dbo.tblRizeForoosh.fldFeeYekCarton, dbo.tblRizeForoosh.fldFeeKol, dbo.tblRizeForoosh.fldDarsadTakhfif, 
                         dbo.tblRizeForoosh.fldMablaghTakhfif, dbo.tblRizeForoosh.fldFeeVahed1BadAzTakhfif, dbo.tblRizeForoosh.fldFeeVahed2BadAzTakhfif, 
                         dbo.tblRizeForoosh.fldArzeshAfzode, dbo.tblRizeForoosh.fldFeeKolBadAzTakhfif, dbo.tblRizeForoosh.fldMablaghKhales, dbo.tblRizeForoosh.fldType, 
                         dbo.tblRizeForoosh.fldDate, dbo.tblGroupKala.fldGroupId, dbo.tblGroupKala.fldGroupName, dbo.tblGroupAshkhas.fldGroupName AS fldGroupNameAshkas2
FROM            dbo.tblRizeForoosh INNER JOIN
                         dbo.tblAnbar ON dbo.tblRizeForoosh.fldCodeAnbar = dbo.tblAnbar.fldCode INNER JOIN
                         dbo.tblTafzili ON dbo.tblRizeForoosh.fldCodeTafsili = dbo.tblTafzili.fldCodeTafzili INNER JOIN
                         dbo.tblKala ON dbo.tblRizeForoosh.fldCodeKala = dbo.tblKala.fldCodeKala INNER JOIN
                         dbo.tblGroupKala ON dbo.tblTafzili.fldCodeGroup = dbo.tblGroupKala.fldGroupId LEFT OUTER JOIN
                         dbo.tblGroupAshkhas ON dbo.tblRizeForoosh.fldCodeVasete = dbo.tblGroupAshkhas.fldGroupId



GO
/****** Object:  View [dbo].[viewShowListKala]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewShowListKala]
AS
SELECT        dbo.tblKala.fldCodeKala, dbo.tblKala.fldNameKala, dbo.tblVahed.fldNameVahed, tblVahed_1.fldNameVahed AS fldNameVahed2, dbo.tblKala.fldFeeForoosh, 
                         dbo.tblKala.fldCodeGroup
FROM            dbo.tblKala INNER JOIN
                         dbo.tblVahed ON dbo.tblKala.fldCodeVahed1 = dbo.tblVahed.ID INNER JOIN
                         dbo.tblVahed AS tblVahed_1 ON dbo.tblKala.fldCodeVahed2 = tblVahed_1.ID



GO
/****** Object:  View [dbo].[viewShowListSmallGroupKala]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewShowListSmallGroupKala]
AS
SELECT        fldGroupId, fldGroupName
FROM            dbo.tblGroupKala



GO
/****** Object:  View [dbo].[viewtestforoosh]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewtestforoosh]
AS
SELECT        dbo.tblRizeForoosh.fldCodeTafsili, tblTafzili_1.fldSharheTafzili, dbo.tblRizeForoosh.fldCodeVasete, dbo.tblTafzili.fldSharheTafzili AS fldNameVasete
FROM            dbo.tblRizeForoosh LEFT OUTER JOIN
                         dbo.tblTafzili ON dbo.tblRizeForoosh.fldCodeVasete = dbo.tblTafzili.fldCodeTafzili LEFT OUTER JOIN
                         dbo.tblTafzili AS tblTafzili_1 ON dbo.tblRizeForoosh.fldCodeTafsili = tblTafzili_1.fldCodeTafzili



GO
/****** Object:  View [dbo].[viewtestShomaretel]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewtestShomaretel]
AS
SELECT        dbo.tblTafzili.fldCodeTafzili, dbo.tblDaftarcheTell.fldCodeTafzili AS Expr1, dbo.tblDaftarcheTell.fldName, dbo.tblDaftarcheTell.fldShomare, 
                         dbo.tblDaftarcheTell.fldSms, dbo.tblDaftarcheTell.fldSharh, dbo.tblTafzili.fldOstan
FROM            dbo.tblTafzili INNER JOIN
                         dbo.tblDaftarcheTell ON dbo.tblTafzili.fldCodeTafzili = dbo.tblDaftarcheTell.fldCodeTafzili



GO
/****** Object:  View [dbo].[viwListeCheckHayePasNashode]    Script Date: 09/25/2022 03:01:45 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viwListeCheckHayePasNashode]
AS
SELECT        TOP (100) PERCENT ID, fldShomareCheck, fldShomareHesab, fldDateSarResid, SUBSTRING(CONVERT(nvarchar, fldDateSarResid), 1, 4) 
                         + '/' + SUBSTRING(CONVERT(nvarchar, fldDateSarResid), 5, 2) + '/' + SUBSTRING(CONVERT(nvarchar, fldDateSarResid), 7, 2) AS fldDateSarResidShow, 
                         fldCodeBank, fldShobe, fldMablagh, fldDatePardakht, SUBSTRING(CONVERT(nvarchar, fldDatePardakht), 1, 4) + '/' + SUBSTRING(CONVERT(nvarchar, 
                         fldDatePardakht), 5, 2) + '/' + SUBSTRING(CONVERT(nvarchar, fldDatePardakht), 7, 2) AS fldDatePardakhtShow, fldCodeSahebeCheck, fldShomarePardakht, 
                         fldCodeSahebeHesab, fldVasete, fldSanad, fldShomarePass, fldDatePass, fldSharhePass
FROM            dbo.tblCheckePardakhti
WHERE        (fldShomarePass IS NULL)
ORDER BY fldDateSarResid



GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[22] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 222
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 12
               Left = 460
               Bottom = 249
               Right = 643
            End
            DisplayFlags = 280
            TopColumn = 7
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 12
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Join_TblTell_TblTafzili'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Join_TblTell_TblTafzili'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'lstlistKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'lstlistKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[10] 2[17] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblGroupAshkhas"
            Begin Extent = 
               Top = 51
               Left = 38
               Bottom = 199
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 27
               Left = 279
               Bottom = 257
               Right = 462
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 39
               Left = 619
               Bottom = 230
               Right = 789
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_2'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_2'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[44] 4[8] 2[5] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 1
               Left = 369
               Bottom = 397
               Right = 552
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 2
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 19
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_ListAshkhas_In_ReportFactorForosh_AliJahangard'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_ListAshkhas_In_ReportFactorForosh_AliJahangard'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[21] 2[15] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblChap"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 224
            End
            DisplayFlags = 280
            TopColumn = 4
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_TblChap'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_TblChap'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 221
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewFilter_Tbl_Tafsili_in_Form_Enteghal_Kala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewFilter_Tbl_Tafsili_in_Form_Enteghal_Kala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[21] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblAnbar"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 149
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetAnbarForComboBox'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetAnbarForComboBox'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblEshantionGroupTabaghati"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 220
               Right = 243
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 281
               Bottom = 236
               Right = 508
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblGroupKala"
            Begin Extent = 
               Top = 6
               Left = 546
               Bottom = 205
               Right = 716
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 2700
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionGroupTabalaghtis'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionGroupTabalaghtis'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[37] 4[13] 2[27] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblEshantionTabaghati"
            Begin Extent = 
               Top = 15
               Left = 308
               Bottom = 224
               Right = 513
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 11
               Left = 602
               Bottom = 235
               Right = 800
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala_1"
            Begin Extent = 
               Top = 25
               Left = 32
               Bottom = 235
               Right = 230
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 10
         Width = 284
         Width = 1935
         Width = 1500
         Width = 2355
         Width = 2130
         Width = 2310
         Width = 2445
         Width = 2385
         Width = 2310
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionTabalaghti'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionTabalaghti'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[34] 4[16] 2[27] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 128
               Left = 483
               Bottom = 353
               Right = 710
            End
            DisplayFlags = 280
            TopColumn = 8
         End
         Begin Table = "tblRizeForoosh"
            Begin Extent = 
               Top = 0
               Left = 213
               Bottom = 370
               Right = 443
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblAnbar"
            Begin Extent = 
               Top = 12
               Left = 628
               Bottom = 124
               Right = 798
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed"
            Begin Extent = 
               Top = 11
               Left = 4
               Bottom = 106
               Right = 174
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_2"
            Begin Extent = 
               Top = 152
               Left = 19
               Bottom = 247
               Right = 189
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 28
         Width = 284
         Width = 1500
         Width = 2280
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
   ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGridForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'      Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGridForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGridForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[10] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 186
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListBarcodeKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListBarcodeKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[21] 2[25] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala (dbo)"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed (dbo)"
            Begin Extent = 
               Top = 6
               Left = 303
               Bottom = 101
               Right = 473
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_1"
            Begin Extent = 
               Top = 6
               Left = 482
               Bottom = 101
               Right = 652
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed"
            Begin Extent = 
               Top = 6
               Left = 274
               Bottom = 101
               Right = 444
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_1"
            Begin Extent = 
               Top = 6
               Left = 482
               Bottom = 101
               Right = 652
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForooshByFldCodeGroup'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForooshByFldCodeGroup'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 222
               Right = 236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListSmallKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListSmallKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili_1"
            Begin Extent = 
               Top = 6
               Left = 303
               Bottom = 135
               Right = 530
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewLoadVizitor'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewLoadVizitor'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[33] 4[19] 2[23] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblGroupAshkhas"
            Begin Extent = 
               Top = 61
               Left = 41
               Bottom = 192
               Right = 227
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 48
               Left = 274
               Bottom = 177
               Right = 473
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 45
               Left = 615
               Bottom = 250
               Right = 801
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 12
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewReportListAshkhasByIN'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewReportListAshkhasByIN'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[12] 2[19] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblRizeForoosh"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 209
               Right = 268
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblAnbar"
            Begin Extent = 
               Top = 0
               Left = 287
               Bottom = 112
               Right = 457
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 28
               Left = 512
               Bottom = 157
               Right = 695
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 27
               Left = 738
               Bottom = 156
               Right = 965
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblGroupAshkhas"
            Begin Extent = 
               Top = 159
               Left = 486
               Bottom = 254
               Right = 656
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblGroupKala"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 233
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 30
         Width = 284
         Width = 1500
     ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewRizeForooshEhsan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'    Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewRizeForooshEhsan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewRizeForooshEhsan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[10] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala (dbo)"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 213
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed (dbo)"
            Begin Extent = 
               Top = 6
               Left = 303
               Bottom = 101
               Right = 473
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_1"
            Begin Extent = 
               Top = 72
               Left = 516
               Bottom = 167
               Right = 686
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblGroupKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 105
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListSmallGroupKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListSmallGroupKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[4] 4[34] 2[23] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblRizeForoosh"
            Begin Extent = 
               Top = 64
               Left = 341
               Bottom = 288
               Right = 571
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili_1"
            Begin Extent = 
               Top = 11
               Left = 660
               Bottom = 248
               Right = 843
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 20
               Left = 82
               Bottom = 280
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestforoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestforoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[7] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 214
               Right = 221
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 20
               Left = 466
               Bottom = 254
               Right = 636
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestShomaretel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestShomaretel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[21] 2[28] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblCheckePardakhti"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 240
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 19
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1485
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1980
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viwListeCheckHayePasNashode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viwListeCheckHayePasNashode'
GO


CREATE FUNCTIOn [dbo].[fn_TablesLastUpdateDate](@Date NVARCHAR(20))

RETURNS @table TABLE(TableName NVARCHAR(40), LastUpdated Datetime)

AS

BEGIN


IF(@Date='') OR (@Date Is Null) OR (@Date='0')

    BEGIN
        INSERT INTO @table
        SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM 
        (
            SELECT  B.NAME AS 'TABLENAME', MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED
            FROM    SYS.SYSINDEXES AS A
                    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID
            WHERE   B.TYPE = 'U'  AND STATS_DATE (ID,INDID) IS NOT NULL 
            GROUP BY B.NAME
        ) AS A
        ORDER BY LASTUPDATED DESC
    END
ELSE

    BEGIN
        INSERT INTO @table
        SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM 
        (
            SELECT  B.NAME AS 'TABLENAME', MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED,
                    CONVERT(VARCHAR, MAX(STATS_DATE (ID,INDID)), 103) as Date
            FROM    SYS.SYSINDEXES AS A
                    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID
            WHERE   B.TYPE = 'U'  AND STATS_DATE (ID,INDID) IS NOT NULL 
            GROUP BY B.NAME
        ) AS A
        WHERE Date=@Date
        ORDER BY LASTUPDATED DESC
    END
RETURN

END

GO
/****** Object:  UserDefinedFunction [dbo].[ZF_GetAccessableAshkhasCode]    Script Date: 09/25/2022 03:04:15 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create FUNCTION [dbo].[ZF_GetAccessableAshkhasCode]
(	
	-- Add the parameters for the function here
	@userCode bigint
)
RETURNS @output TABLE(fldCode bigint 
) 
begin
  --Declare @value nvarchar(100)
  --set @value =( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS')

 Declare @value nvarchar(100)
  --set @value =( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS')
  if ( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS') = 'True'
  Begin -- Limitation Active

    declare @groups table(fldCode bigint)
	 insert into @groups(fldCode)
	 select fldGroupCode from tblGroupAshkhasAccess where fldUserCode = @usercode

	 insert into @output(fldCode)
	 select fldCodeTafzili from tblTafzili as t
	 inner join @groups as g on convert(nvarchar(100),t.fldCodeGroup) like convert(nvarchar(100),g.fldCode) + '%'
	 group by fldCodeTafzili
	 order by CONVERT(varchar,fldCodeTafzili )


  End
  else
  Begin -- Limitation DeActive
	insert into @output(fldCode)
	select fldCodeTafzili from tblTafzili
	order by CONVERT(varchar,fldCodeTafzili )
  End

  RETURN 
end

GO
/****** Object:  UserDefinedFunction [dbo].[ZF_GetAccessableGroupAshkhasCode]    Script Date: 09/25/2022 03:04:15 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create FUNCTION [dbo].[ZF_GetAccessableGroupAshkhasCode]
(	
	-- Add the parameters for the function here
	@userCode bigint
)
RETURNS @output TABLE(fldCode bigint 
) 
begin
  --Declare @value nvarchar(100)
  --set @value =( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS')

  if (( select fldMeghdar from tblTanzimateKol  where fldType = 'ACCESSGROUPASHKHAS') = 'True')
  Begin -- Limitation Active

		declare @tbl table(fldCode bigint) -- in fact -> fldCodeGroupKala 
		insert @tbl(fldCode)
		select fldGroupCode from tblGroupAshkhasAccess where fldUserCode = @userCode 
		
		insert @output(fldCode)
		select fldGroupId from tblGroupAshkhas 
		where  fldGroupId in(select fldCode from @tbl)
		order by CONVERT(varchar,fldGroupId )

  End
  else
  Begin -- Limitation DeActive

		insert @output(fldCode)
		select fldGroupId from tblGroupAshkhas
		order by CONVERT(varchar,fldGroupId )

  End

  RETURN 
end

GO
/****** Object:  UserDefinedFunction [dbo].[ZF_SplitString]    Script Date: 09/25/2022 03:04:15 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


CREATE FUNCTION [dbo].[ZF_SplitString] 
( 
    @string NVARCHAR(MAX), 
    @delimiter CHAR(1) 
) 
RETURNS @output TABLE(number bigint 
) 
BEGIN 
 
    DECLARE @start INT, @end INT 
    SELECT @start = 1, @end = CHARINDEX(@delimiter, @string) 
 
    WHILE @start < LEN(@string) + 1 BEGIN 
        IF @end = 0  
            SET @end = LEN(@string) + 1
       
        INSERT INTO @output (number)  
        VALUES(SUBSTRING(@string, @start, @end - @start)) 
        SET @start = @end + 1 
        SET @end = CHARINDEX(@delimiter, @string, @start)
        
    END 
 
    RETURN 
 
END

GO
/****** Object:  UserDefinedFunction [dbo].[SplitString]    Script Date: 09/25/2022 03:04:15 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE FUNCTION [dbo].[SplitString]
(
  @List     nvarchar(max),
  @Delim    nvarchar(255)
)
RETURNS TABLE WITH SCHEMABINDING
AS
   RETURN ( WITH n(n) AS (SELECT 1 UNION ALL SELECT n+1 
       FROM n WHERE n <= LEN(@List))
       SELECT [Value] = SUBSTRING(@List, n, 
       CHARINDEX(@Delim, @List + @Delim, n) - n)
       FROM n WHERE n <= LEN(@List)
      AND SUBSTRING(@Delim + @List, n, DATALENGTH(@Delim)/2) = @Delim
   );

GO
/****** Object:  UserDefinedFunction [dbo].[translateFunction]    Script Date: 09/25/2022 03:04:15 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE FUNCTION [dbo].[translateFunction]
(	
	-- Add the parameters for the function here
	@Language nvarchar(10),
	@CodeMessage bigint
)
RETURNS TABLE 
AS
RETURN 
(
	-- Add the SELECT statement with parameter references here
	SELECT fldMatn
					FROM  tblTranslateMain 
						where fldLanguage=@Language and fldCode=@CodeMessage
)

GO


--اینجا




EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[22] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 222
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 12
               Left = 460
               Bottom = 249
               Right = 643
            End
            DisplayFlags = 280
            TopColumn = 7
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 12
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Join_TblTell_TblTafzili'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Join_TblTell_TblTafzili'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'lstlistKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'lstlistKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[10] 2[17] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblGroupAshkhas"
            Begin Extent = 
               Top = 51
               Left = 38
               Bottom = 199
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 27
               Left = 279
               Bottom = 257
               Right = 462
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 39
               Left = 619
               Bottom = 230
               Right = 789
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_2'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_2'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[44] 4[8] 2[5] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 1
               Left = 369
               Bottom = 397
               Right = 552
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 2
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 19
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_ListAshkhas_In_ReportFactorForosh_AliJahangard'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_ListAshkhas_In_ReportFactorForosh_AliJahangard'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[21] 2[15] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblChap"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 224
            End
            DisplayFlags = 280
            TopColumn = 4
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_TblChap'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'View_TblChap'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 221
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewFilter_Tbl_Tafsili_in_Form_Enteghal_Kala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewFilter_Tbl_Tafsili_in_Form_Enteghal_Kala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[21] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblAnbar"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 149
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetAnbarForComboBox'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetAnbarForComboBox'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblEshantionGroupTabaghati"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 220
               Right = 243
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 281
               Bottom = 236
               Right = 508
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblGroupKala"
            Begin Extent = 
               Top = 6
               Left = 546
               Bottom = 205
               Right = 716
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 2700
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionGroupTabalaghtis'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionGroupTabalaghtis'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[37] 4[13] 2[27] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblEshantionTabaghati"
            Begin Extent = 
               Top = 15
               Left = 308
               Bottom = 224
               Right = 513
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 11
               Left = 602
               Bottom = 235
               Right = 800
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala_1"
            Begin Extent = 
               Top = 25
               Left = 32
               Bottom = 235
               Right = 230
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 10
         Width = 284
         Width = 1935
         Width = 1500
         Width = 2355
         Width = 2130
         Width = 2310
         Width = 2445
         Width = 2385
         Width = 2310
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionTabalaghti'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGetListEshantionTabalaghti'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[34] 4[16] 2[27] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 128
               Left = 483
               Bottom = 353
               Right = 710
            End
            DisplayFlags = 280
            TopColumn = 8
         End
         Begin Table = "tblRizeForoosh"
            Begin Extent = 
               Top = 0
               Left = 213
               Bottom = 370
               Right = 443
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblAnbar"
            Begin Extent = 
               Top = 12
               Left = 628
               Bottom = 124
               Right = 798
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed"
            Begin Extent = 
               Top = 11
               Left = 4
               Bottom = 106
               Right = 174
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_2"
            Begin Extent = 
               Top = 152
               Left = 19
               Bottom = 247
               Right = 189
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 28
         Width = 284
         Width = 1500
         Width = 2280
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
   ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGridForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'      Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGridForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewGridForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[10] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 186
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListBarcodeKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListBarcodeKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[21] 2[25] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala (dbo)"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed (dbo)"
            Begin Extent = 
               Top = 6
               Left = 303
               Bottom = 101
               Right = 473
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_1"
            Begin Extent = 
               Top = 6
               Left = 482
               Bottom = 101
               Right = 652
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed"
            Begin Extent = 
               Top = 6
               Left = 274
               Bottom = 101
               Right = 444
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_1"
            Begin Extent = 
               Top = 6
               Left = 482
               Bottom = 101
               Right = 652
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForooshByFldCodeGroup'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListKalaInFactorForooshByFldCodeGroup'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[11] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 222
               Right = 236
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListSmallKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewListSmallKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = -96
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili_1"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 267
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 10
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewLoadVizitor'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewLoadVizitor'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[33] 4[19] 2[23] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblGroupAshkhas"
            Begin Extent = 
               Top = 61
               Left = 41
               Bottom = 192
               Right = 227
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 48
               Left = 274
               Bottom = 177
               Right = 473
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 45
               Left = 615
               Bottom = 250
               Right = 801
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 12
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewReportListAshkhasByIN'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewReportListAshkhasByIN'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[12] 2[19] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblRizeForoosh"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 209
               Right = 268
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblAnbar"
            Begin Extent = 
               Top = 0
               Left = 287
               Bottom = 112
               Right = 457
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 28
               Left = 512
               Bottom = 157
               Right = 695
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblKala"
            Begin Extent = 
               Top = 27
               Left = 738
               Bottom = 156
               Right = 965
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblGroupAshkhas"
            Begin Extent = 
               Top = 159
               Left = 486
               Bottom = 254
               Right = 656
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblGroupKala"
            Begin Extent = 
               Top = 138
               Left = 38
               Bottom = 233
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 30
         Width = 284
         Width = 1500
     ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewRizeForooshEhsan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'    Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewRizeForooshEhsan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewRizeForooshEhsan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[10] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblKala (dbo)"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 213
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed (dbo)"
            Begin Extent = 
               Top = 6
               Left = 303
               Bottom = 101
               Right = 473
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblVahed_1"
            Begin Extent = 
               Top = 72
               Left = 516
               Bottom = 167
               Right = 686
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblGroupKala"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 105
               Right = 208
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListSmallGroupKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewShowListSmallGroupKala'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[4] 4[34] 2[23] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblRizeForoosh"
            Begin Extent = 
               Top = 64
               Left = 341
               Bottom = 288
               Right = 571
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili_1"
            Begin Extent = 
               Top = 11
               Left = 660
               Bottom = 248
               Right = 843
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 20
               Left = 82
               Bottom = 280
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestforoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestforoosh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[20] 2[7] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblTafzili"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 214
               Right = 221
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "tblDaftarcheTell"
            Begin Extent = 
               Top = 20
               Left = 466
               Bottom = 254
               Right = 636
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestShomaretel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viewtestShomaretel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[42] 4[21] 2[28] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "tblCheckePardakhti"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 135
               Right = 240
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 19
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1485
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1980
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viwListeCheckHayePasNashode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'viwListeCheckHayePasNashode'
GO


Delete from tblListeDastrasi
GO

SET IDENTITY_INSERT [dbo].[tblListeDastrasi] ON 

GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (1, 100, N'فروش', 1, 1, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (2, 101, N'امکان حذف فاکتور فروش', 1, 2, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (3, 102, N'امکان ویرایش فاکتور فروش', 1, 3, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (4, 103, N'امکان ثبت فاکتور فروش اعتباری', 1, 4, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (5, 104, N'امکان مشاهده آرشیو فاکتور فروش', 1, 5, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (6, 105, N'امکان تغییر فی فروش', 1, 6, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (7, 106, N'امکان مشاهده انبار جاری در فاکتور فروش', 1, 7, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (8, 107, N'امکان مشاهده انبار کل در فاکتور فروش', 1, 8, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (9, 108, N'امکان ویرایش فاکتور توسط کاربر دیگر', 1, 9, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10, 201, N'امکان حذف فاکتور خرید', 2, 2, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (11, 202, N'امکان ویرایش فاکتور خرید', 2, 3, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (12, 200, N'خرید', 2, 1, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10012, 109, N'امکان مشاهده آخرین فی خرید در فرم فروش', 1, 10, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10015, 203, N'امکان مشاهده آرشیو فاکتور خرید', 2, 4, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10016, 204, N'امکان مشاهده انبار جاری در فاکتور خرید', 2, 5, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10017, 205, N'امکان مشاهده انبار کل در فاکتور خرید', 2, 6, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10018, 206, N'امکان ثبت فاکتور خرید اعتباری', 2, 7, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10019, 207, N'امکان مشاهده آخرین فی خرید در فرم خرید', 2, 8, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10020, 300, N'برگشت از فروش', 3, 1, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10021, 301, N'امکان حذف برگشت از فروش', 3, 2, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10022, 302, N'امکان ویرایش برگشت از فروش', 3, 3, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10023, 303, N'امکان ثبت برگشت از فروش اعتباری', 3, 4, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10024, 304, N'امکان مشاهده آرشیو برگشت از فروش', 3, 5, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10025, 305, N'امکان تغییر فی فروش', 3, 6, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10026, 306, N'امکان مشاهده انبار جاری در برگشت از فروش', 3, 7, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (10027, 307, N'امکان مشاهده انبار کل در برگشت از فروش', 3, 8, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20012, 400, N'برگشت از خرید', 4, 1, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20013, 401, N'امکان حذف برگشت از خرید', 4, 2, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20014, 402, N'امکان ویرایش برگشت از خرید', 4, 3, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20015, 403, N'امکان مشاهده آرشیو برگشت از خرید', 4, 4, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20016, 404, N'امکان مشاهده انبار جاری در برگشت از خرید', 4, 5, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20017, 405, N'امکان مشاهده انبار کل در برگشت از خرید', 4, 6, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20018, 406, N'امکان ثبت برگشت از خرید اعتباری', 4, 7, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (20019, 407, N'امکان مشاهده آخرین فی خرید در برگشت از خرید', 4, 8, N'برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30013, 500, N'پیش فاکتور', 5, 1, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30014, 550, N'سفارشات ویزیتورها', 6, 1, N'سفارشات ویزیتورها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30015, 600, N'مسیر حرکت ویزیتورها', 7, 1, N'مسیر حرکت ویزیتورها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30016, 610, N'انتقال کالا بین انبار', 8, 1, N'انتقال کالا بین انبار')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30017, 640, N'حواله گروهی', 9, 1, N'حواله گروهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30018, 650, N'دریافت مطالبات', 10, 1, N'دریافت مطالبات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30019, 670, N'پرداخت بدهی', 11, 1, N'پرداخت بدهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30020, 690, N'گزارش صندوق', 12, 1, N'گزارش صندوق')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30021, 700, N'ثبت درآمدها', 13, 1, N'ثبت درآمدها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30022, 710, N'ثبت هزینه ها', 14, 1, N'ثبت هزینه ها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30023, 720, N'انتقال وجه', 15, 1, N'ثبت هزینه ها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30024, 730, N'گزارش جامع فروش', 16, 1, N'گزارش جامع فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30025, 740, N'گزارش جامع خرید', 17, 1, N'گزارش جامع خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30026, 750, N'گزارش جامع برگشت از فروش', 18, 1, N'گزارش جامع برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30027, 760, N'گزارش جامع برگشت از خرید', 19, 1, N'گزارش جامع برگشت از خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30028, 770, N'سند حسابداری', 20, 1, N'سند حسابداری')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30029, 780, N'ثبت سفارش غذا', 21, 1, N'ثبت سفارش غذا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30030, 790, N'محل چاپگر', 22, 1, N'محل چاپگر')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30031, 795, N'معرفی مشترکین', 23, 1, N'معرفی مشترکین')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30032, 800, N'خدمات کارواش', 24, 1, N'خدمات کارواش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30033, 805, N'معرفی راننده', 25, 1, N'معرفی راننده')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30035, 815, N'گزارش عملکرد راننده', 27, 1, N'گزارش عملکرد راننده')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30036, 820, N'ثبت سرویس', 28, 1, N'ثبت سرویس')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30037, 830, N'معرفی مسیر', 29, 1, N'معرفی مسیر')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30038, 835, N'در انتظار آی دی کالر', 30, 1, N'در انتظار آی دی کالر')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30039, 840, N'معرفی دسته چک', 36, 1, N'بانک')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30040, 845, N'ثبت وصول چک', 36, 1, N'بانک')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30041, 850, N'واگذاری چک به بانک', 36, 1, N'بانک')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30042, 855, N'ثبت پاس چک خودمان', 36, 1, N'بانک')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30043, 860, N'گزارش بانک', 36, 1, N'بانک')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30044, 865, N'گزارش چکهای دریافتی', 36, 1, N'بانک')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30045, 870, N'گزارش لیست اشخاص', 37, 1, N'گزارش لیست اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30046, 875, N'گزارش لیست کالا', 38, 1, N'گزارش لیست کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30047, 880, N'گزارش موجودی انبار', 39, 1, N'گزارش موجودی انبار')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30048, 885, N'کاردکس کالا', 40, 1, N'کاردکس کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30049, 890, N'گزارش صورتحساب اشخاص', 41, 1, N'گزارش صورتحساب اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30050, 895, N'لیست بدهکاران', 42, 1, N'لیست بدهکاران')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30051, 900, N'لیست بستانکاران', 43, 1, N'لیست بستانکاران')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30052, 905, N'مانده حساب اشخاص', 44, 1, N'مانده حساب اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30053, 910, N'عملکرد تفصیلی', 45, 1, N'عملکرد تفصیلی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30054, 915, N'فاکتورهای تسویه نشده', 46, 1, N'فاکتورهای تسویه نشده')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30055, 920, N'معرفی کالا', 47, 1, N'معرفی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30056, 925, N'گروه بندی کالا', 48, 1, N'گروه بندی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30057, 930, N'موجودی ابتدای دوره', 49, 1, N'موجودی ابتدای دوره')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30058, 935, N'واحد اندازه گیری', 50, 1, N'واحد اندازه گیری')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30059, 940, N'معرفی اشخاص', 51, 1, N'معرفی اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30060, 945, N'گروه بنده اشخاص', 52, 1, N'گروه بنده اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30061, 950, N'دفترچه تلفن', 53, 1, N'دفترچه تلفن')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30062, 955, N'مانده ابتدای دوره اشخاص', 54, 1, N'مانده ابتدای دوره اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30063, 960, N'معرفی ویزیتور', 55, 1, N'معرفی ویزیتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30064, 965, N'معرفی سوپروایزر', 56, 1, N'معرفی سوپروایزر')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30065, 970, N'معرفی بانک مشتری', 57, 1, N'معرفی بانک مشتری')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30066, 975, N'معرفی بانک ما', 58, 1, N'معرفی بانک ما')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30067, 980, N'معرفی صندوق', 59, 1, N'معرفی صندوق')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30068, 985, N'معرفی انبار', 60, 1, N'معرفی انبار')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30069, 990, N'معرفی هزینه ها', 61, 1, N'معرفی هزینه ها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30070, 995, N'معرفی درآمدها', 62, 1, N'معرفی درآمدها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30071, 1000, N'پشتیبان گیری اطلاعات', 63, 1, N'پشتیبان گیری اطلاعات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30072, 1005, N'بازیابی اطلاعات', 63, 1, N'بازیابی اطلاعات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30073, 1010, N'پاک کردن اطلاعات', 63, 1, N'پاک کردن اطلاعات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30074, 1015, N'تنظیمات چاپ', 63, 1, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30075, 1020, N'تنظیمات قفل', 63, 2, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30076, 1025, N'تنظیمات خرید و فروش', 63, 3, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30077, 1030, N'بروزرسانی اطلاعات تبلت', 63, 4, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30078, 1035, N'بروزرسانی ', 63, 5, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30079, 1040, N'ایجاد حساب جدید', 63, 6, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30080, 731, N'نمودار فروش', 16, 2, N'گزارش جامع فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30081, 732, N'نمودار مقایسه ای ویزیتورها', 16, 3, N'گزارش جامع فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30082, 866, N'هشدار سررسید چک', 36, 1, N'بانک')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30083, 1041, N'تنظیمات کلی', 63, 7, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30084, 771, N'سود و زیان', 65, 1, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30085, 110, N'ثبت فاکتور به تاریخ غیرجاری', 1, 11, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30086, 111, N'محسابه سود فاکتور', 1, 12, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30087, 112, N'سود کالا در فاکتور ', 1, 13, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30088, 711, N'گزارش هزینه ها ', 2, 14, N'ثبت هزینه ها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30089, 113, N'امکان حذف فاکتور به تاریخ غیرجاری', 1, 14, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30090, 114, N'امکان ویرایش فاکتور به تاریخ غیرجاری', 1, 15, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30092, 115, N'ثبت فاکتور فقط به تاریخ جاری', 1, 16, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30093, 501, N'امکان حذف پیش فاکتور', 5, 2, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30094, 503, N'امکان ویرایش پیش فاکتور به تاریخ غیرجاری', 5, 4, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30095, 502, N'امکان ویرایش پیش فاکتور', 5, 3, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30096, 504, N'امکان حذف پیش فاکتور به تاریخ غیرجاری', 5, 5, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30097, 208, N'امکان حذف فاکتور خرید به تاریخ غیرجاری', 2, 9, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30098, 209, N'امکان ویرایش فاکتور خرید به تاریخ غیرجاری', 2, 10, N'خرید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30100, 308, N'امکان حذف برگشت از فروش به تاریخ غیرجاری', 3, 9, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30101, 309, N'امکان ویرایش برگشت از فروش به تاریخ غیرجاری', 3, 10, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30102, 1042, N'امکان حذف انتقال کالا بین انبار', 64, 1, N'انتقال کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30103, 1043, N'امکان ویرایش انتقال کالا بین انبار', 64, 2, N'انتقال کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30104, 1044, N'امکان حذف انتقال کالا به تاریخ غیرجاری', 64, 3, N'انتقال کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30105, 1045, N'امکان ویرایش انتقال کالا به تاریخ غیرجاری', 64, 4, N'انتقال کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30106, 641, N'ثبت حواله گروهی', 9, 2, N'حواله گروهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30107, 642, N'حذف حواله گروهی', 9, 3, N'حواله گروهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30108, 643, N'ثبت حواله گروهی به تاریخ غیرجاری', 9, 4, N'حواله گروهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30109, 671, N'ثبت پرداخت بدهی', 11, 2, N'پرداخت بدهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30110, 672, N'حذف پرداخت بدهی', 11, 3, N'پرداخت بدهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30111, 673, N'ثبت پرداخت بدهی به تاریخ غیرجاری', 11, 4, N'پرداخت بدهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30112, 651, N'ثبت دریافت مطالبات', 10, 2, N'دریافت مطالبات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30113, 652, N'ثبت  دریافت بدهی به تاریخ غیرجاری', 10, 3, N'دریافت مطالبات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30114, 675, N'ویرایش پرداخت بدهی', 11, 6, N'پرداخت بدهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30115, 653, N'ویرایش دریافت مطالبات', 10, 4, N'دریافت مطالبات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30116, 654, N'حذف دریافت مطالبات', 10, 5, N'دریافت مطالبات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30117, 701, N'امکان حذف درآمد', 13, 2, N'ثبت درآمدها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30118, 702, N'امکان ویرایش درآمد', 13, 3, N'ثبت درآمدها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30119, 703, N' امکان حذف درآمد به تاریخ غیرجاری', 13, 4, N'ثبت درآمدها')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30120, 655, N' امکان حذف دریافت بدهی به تاریخ غیرجاری', 10, 6, N'دریافت مطالبات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30121, 674, N' امکان حذف پرداخت بدهی به تاریخ غیرجاری', 11, 5, N'پرداخت بدهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30122, 644, N'امکان حذف حواله گروهی به تاریخ غیرجاری', 9, 5, N'حواله گروهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30123, 806, N'حذف راننده', 25, 2, N'معرفی راننده')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30124, 807, N'ویرایش راننده', 25, 3, N'معرفی راننده')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30125, 951, N'حذف در دفترچه تلفن', 53, 2, N'دفترچه تلفن')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30126, 952, N'ویرایش در دفترچه تلفن', 53, 3, N'دفترچه تلفن')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30127, 921, N'امکان حذف کالا', 47, 2, N'معرفی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30128, 922, N'امکان ویرایش کالا', 47, 3, N'معرفی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30129, 876, N'چاپ لیست کالا', 38, 2, N'گزارش لیست کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30130, 941, N'امکان حذف در معرفی اشخاص', 51, 2, N'معرفی اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30131, 942, N'امکان ویرایش در معرفی اشخاص', 51, 3, N'معرفی اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30132, 981, N'چاپ گزارش لیست اشخاص', 37, 2, N'گزارش لیست اشخاص')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30133, 1050, N'معرفی تفصیلی', 65, 7, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30134, 1051, N'ویرایش تفصیلی', 65, 2, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30135, 1052, N'حذف تفصیلی', 65, 3, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30136, 923, N'اشانتیون کالا', 47, 4, N'معرفی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30137, 924, N'چند قیمته', 47, 5, N'معرفی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30138, 1200, N'چند قیمته دینامیک', 47, 6, N'معرفی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30139, 926, N'اشانتیون گروهی کالا', 48, 7, N'گروه بندی کالا')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30140, 961, N'پورسانت هدفمند', 55, 1, N'معرفی ویزیتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30141, 962, N'ویرایش پورسانت هدفمند', 55, 2, N'معرفی ویزیتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30142, 963, N'حذف پورسانت هدفمند', 55, 3, N'معرفی ویزیتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30143, 964, N'گزارش پورسانت هدفمند واریز', 55, 4, N'معرفی ویزیتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30144, 1053, N'معرفی کل و معین', 65, 4, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30145, 1054, N'ویرایش کل و معین', 65, 5, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30146, 1055, N'حذف کل و معین', 65, 6, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30147, 1210, N'تخفیفات مبلغی', 66, 1, N'تخفیفات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30148, 1211, N'ویرایش تخفیفات مبلغی', 66, 2, N'تخفیفات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30149, 1212, N'حذف تخفیفات مبلغی', 66, 3, N'تخفیفات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30150, 1213, N'تخفیفات حجمی', 66, 4, N'تخفیفات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30151, 1214, N'ویرایش تخفیفات حجمی', 66, 5, N'تخفیفات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30152, 1215, N'حذف تخفیفات حجمی', 66, 6, N'تخفیفات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30154, 1056, N'دفتر روزنامه', 65, 7, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30155, 1057, N'دفتر کل', 65, 8, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30156, 116, N'اصلاح کلی فاکتورها', 1, 17, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30157, 117, N'مرتب سازی فاکتورها', 1, 18, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30158, 505, N'تبدیل پیش فاکتورهایی که موجودی منفی دارند', 5, 6, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30159, 1201, N'قفل کردن فاکتورها', 63, 8, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30160, 506, N'اجازه تبدیل مجدد پیش فاکتور', 5, 7, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30161, 507, N'اجازه اصلاح پیش فاکتوری که به فاکتور تبدیل گردیده است', 5, 8, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30162, 118, N'چاپ فاکتور قبل از ثبت نهایی فاکتور', 1, 19, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30163, 119, N'پیش نمایش قبل از ثبت نهایی فاکتور', 1, 20, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30164, 508, N'چاپ پیش فاکتور قبل از ثبت نهایی', 5, 9, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30165, 509, N'پیش نمایش قبل از ثبت نهایی پیش فاکتور', 5, 10, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30166, 1046, N'معرفی سریع کالا در فرم ها', 63, 10, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30167, 1047, N'معرفی سریع اشخاص در فرم ها', 63, 9, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30168, 691, N'گزارش جامع دریافت', 12, 2, N'گزارشات دریافت و پرداخت')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30169, 692, N'گزارش جامع پرداخت', 12, 3, N'گزارشات دریافت و پرداخت')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30171, 120, N'مجوز حذف فاکتور مربوط به کاربر دیگر', 1, 21, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30172, 121, N'مجوز ویرایش فاکتور مربوط به کاربر دیگر', 1, 22, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30173, 510, N'مجوز حذف پیش فاکتور مربوط به کاربر دیگر', 5, 11, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30174, 511, N'مجوز ویرایش پیش فاکتور مربوط به کاربر دیگر', 5, 12, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30179, 1058, N'صدور سند حسابداری به تاریخ غیر جاری', 65, 9, N'مالی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30180, 1048, N'دسترسی به گروه کالا', 63, 11, N'تنظیمات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30181, 656, N'مجوز ثبت تخفیف در دریافت', 11, 6, N'دریافت مطالبات')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30182, 512, N'نمایش موجودی انبار جاری', 5, 13, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30183, 513, N'نمایش موجودی همه انبارها', 5, 14, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30184, 676, N'مجوز تخفیف در پرداخت', 12, 6, N'پرداخت بدهی')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30185, 122, N'مجوز ثبت تخفیف برای هر قلم کالا', 1, 23, N'فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30186, 514, N'مجوز ثبت تخفیف برای هر قلم کالا', 5, 15, N'پیش فاکتور')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30187, 1216, N'تولید', 67, 1, N'تولید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30188, 1217, N'حذف در تولید', 67, 2, N'تولید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30189, 1218, N'ویرایش در تولید', 67, 3, N'تولید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30190, 1219, N'فرمول تولید', 67, 4, N'تولید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30191, 1220, N'حذف در فرمول تولید', 67, 5, N'تولید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30192, 1221, N'ویرایش در فرمول تولید', 67, 6, N'تولید')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30193, 1222, N'غیر الزامی بود اتصال فروش به برگشت از فروش', 3, 11, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30194, 1223, N'غیر الزامی بود کنترل ریز اقلام فروش', 3, 12, N'برگشت از فروش')
GO
INSERT [dbo].[tblListeDastrasi] ([ID], [fldCode], [fldName], [fldGroup], [fldOrder], [fldNameGroup]) VALUES (30195, 1224, N'غیر الزامی بود چاپ قبل از ثبت دریافت', 10, 6, N'دریافت مطالبات')
GO
SET IDENTITY_INSERT [dbo].[tblListeDastrasi] OFF
GO











SET IDENTITY_INSERT [dbo].[tblVersionInfo] ON 

INSERT [dbo].[tblVersionInfo] ([ID], [fldVersion], [fldTozihat]) VALUES (1, 7.21, N'قابليتهاي جديد اضافه شده در اين نسخه نسبت به نسخه قبل


1-توسعه حواله گروهی
2-توسعه گزارش فاکتورهای تسویه نشده
3-نمودار واریز ویزیتورها
4-طرح تخفیفات مبلغی
5-طرح تخفیفات حجمی
6-گزارش تسویه حواله گروهی
7-پورسانت هدفمند یا طبقاتی
8-گزارش پورسانت هدفمند
9-توسعه مسیر حرکت ویزیتور
10-فیلمهای آموزشی
11-منوساز اختصاصی')
SET IDENTITY_INSERT [dbo].[tblVersionInfo] OFF
/****** Object:  StoredProcedure [dbo].[aaaa]    Script Date: 09/14/2018 07:04:54 ب.ظ ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO



Delete from tblMenuMaster
GO


SET IDENTITY_INSERT [dbo].[tblMenuMaster] ON 

GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (242, N'اتصال به جی اس ام مودم', N'connectgsm')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (278, N'ارسال پیام به ویزیتور', N'sendnotification')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (162, N'اشانتیون گروهی کالا', N'eshantiongoroohi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (247, N'اصلاح کلی فاکتورها', N'eslahekoliefactorha')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (254, N'انبارگردانی', N'moghayeratanbar')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (151, N'انتقال کالا بین انبار', N'enteghalekala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (187, N'انتقال وجه', N'enteghalevajh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (294, N'بازپسگیری چک پرداختی', N'CheckBazPasDahiShode')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (239, N'بازیابی اطلاعات', N'restor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (176, N'برگشت از خرید', N'bargashtazkharid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (173, N'برگشت از فروش', N'bargashtazforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (164, N'برگشت اسناد قطعی شده', N'bargashteghatei')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (204, N'برگشت چک دریافتی', N'bargashtecheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (280, N'برگشت چک فروخته شده', N'BargashteCheckeVagozarShode')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (181, N'پرداخت', N'pardakht')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (238, N'پشتیبانی اطلاعات', N'backup')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (160, N'پورسانت طبقاتی فروش', N'poorsantetabaghatiforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (161, N'پورسانت طبقاتی واریز', N'poorsantetabaghativariz')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (174, N'پیش فاکتور', N'pishfactor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (157, N'تخفیفات حجمی', N'takhfifatehajmi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (156, N'تخفیفات مبلغی', N'takhfifatemablaghi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (288, N'تخفیفات نقدی', N'takhfifatenaghdi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (293, N'ترازآزمايشي', N'tarazeazmayeshi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (265, N'ترازنامه', N'tarazname')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (243, N'تنظیمات چاپ', N'tanzimatechap')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (244, N'تنظیمات خرید و فروش', N'kharidvaforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (153, N'تولید', N'tolid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (201, N'ثبت پاس چکهای خودمان', N'sabtepasecheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (183, N'ثبت درآمد', N'sabtedaramad')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (261, N'ثبت وام', N'vam')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (203, N'ثبت وصول چک', N'sabtevosoolecheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (185, N'ثبت هزینه', N'sabtehazine')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (283, N'جستجو در اسناد', N'jostojoo')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (196, N'چاپ چک', N'chapecheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (256, N'چاپ سند', N'chapesanad')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (248, N'چند قیمته دینامیک', N'multifeedynamic')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (170, N'حذف اسناد', N'deleteasnad')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (177, N'حواله گروهی-توزیع', N'havalegoroohi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (180, N'دریافت', N'daryaft')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (279, N'دسترسی به گروه اشخاص', N'DastrasigroupAshkhas')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (264, N'دسترسی به گروه کالا', N'dastrasibegroupkala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (168, N'دفتر روزنامه', N'daftareroozname')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (167, N'دفتر کل', N'daftekol')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (226, N'دفترچه تلفن', N'daftarchetelephon')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (178, N'سفارشات ویزیتورها', N'sefareshatevizitor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (171, N'سند افتتاحیه', N'eftetahie')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (195, N'سند حسابداری', N'sanadehesabdari')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (249, N'شرح چند قیمته دینامیک', N'sharhemultifee')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (166, N'شرکت جدید', N'newcompany')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (212, N'صورتحساب اشخاص', N'soorathesabeashkhas')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (245, N'طراحی بارکد', N'barcode')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (251, N'طرح تخفیفات حجمی', N'takhfifatehajmi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (289, N'طرح تخفیفات حجمی گروهی کالا', N'tarhetakhfifatehajmigoroohiekala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (252, N'طرح تخفیفات مبلغی', N'takhfifatemablaghi')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (237, N'طول حسابهای پایه', N'toolepaye')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (208, N'عملکرد تفصیلی', N'almalkardetafzili')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (163, N'عملکرد مراکز', N'amalkardemarakez')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (281, N'عودت چک فروخته شه', N'OdateCheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (175, N'فاکتور خرید', N'kharid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (206, N'فاکتورهای تسویه نشده', N'factorhayetasfienashode')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (154, N'فرمول تولید', N'formooletolid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (172, N'فروش', N'foroosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (215, N'کاردکس کالا', N'kardeks')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (165, N'کنترل اسناد', N'controleasnad')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (216, N'گردش کالا', N'gardeshekala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (285, N'گزارش اقساط معوقه', N'reportaghsatmoavaghe')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (200, N'گزارش بانک', N'reportbank')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (260, N'گزارش به تفکیک گروه کالا (برند)', N'betafkikeberand')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (155, N'گزارش پورسانت هدفمند', N'reportpoorsanthadafmand')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (284, N'گزارش جامع اقساط', N'reportjameaghsat')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (192, N'گزارش جامع برگشت از خرید', N'reportbargashtazkharid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (193, N'گزارش جامع برگشت از فروش', N'reportbargashtazforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (263, N'گزارش جامع پرداخت', N'reportpardakht')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (191, N'گزارش جامع خرید', N'reportkharid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (262, N'گزارش جامع دریافت', N'reportdaryaft')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (188, N'گزارش جامع فروش', N'reportforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (198, N'گزارش چکهای پرداختی', N'reportcheckpardakhti')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (197, N'گزارش چکهای دریافتی', N'reportcheckdaryafti')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (253, N'گزارش خالص فروش', N'reportkhalesforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (184, N'گزارش درآمد', N'reportdaramad')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (250, N'گزارش سود کالا', N'reportsoodekala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (277, N'گزارش سود کالا به تفکیک برند(گروه کالا)-فایفو', N'reportsoodgroupkalafifo')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (194, N'گزارش سود و زیان', N'soodozian')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (182, N'گزارش صندوق', N'reportsandoogh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (213, N'گزارش عملکرد تفصیلی مراکز', N'reportamalkardetafziliemarakez')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (149, N'گزارش عملکرد ویزیتور2', N'reportamalkardevizitor2')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (257, N'گزارش عملکرد ویزیتورها', N'reportamalkardevizitor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (218, N'گزارش لیست اشخاص', N'listeashkhas')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (272, N'گزارش لیست انتقال کالا بین انبار', N'reportlistenteghalekala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (276, N'گزارش لیستی اسناد', N'reportlistasnad')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (275, N'گزارش لیستی انتقال وجه', N'reportlistenteghalevajh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (268, N'گزارش لیستی برگشت از خرید', N'reportlistbargashtazkharid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (270, N'گزارش لیستی برگشت از فروش', N'reportlistbargashtazforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (271, N'گزارش لیستی پیش فاکتور', N'reportlistpishfactor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (267, N'گزارش لیستی خرید', N'reportlistkharid')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (273, N'گزارش لیستی درآمد', N'reportlistdaramad')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (269, N'گزارش لیستی فروش', N'reportlistforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (274, N'گزارش لیستی هزینه', N'reportlisthazine')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (214, N'گزارش موجودی انبار', N'reportanbar')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (186, N'گزارش هزینه', N'reporthazine')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (255, N'لیست اشخاص فاکتور نشده', N'reportlisteashkhasefactornashode')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (210, N'لیست بدهکاران', N'listebedehkaran')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (211, N'لیست بستانکاران', N'listebestankaran')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (217, N'لیست کالا', N'listekala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (225, N'مانده ابتدای دوره اشخاص', N'mandeebtedaashkhas')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (209, N'مانده حساب اشخاص', N'mandehesaeashkhas')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (241, N'محدودیت دسترسی تبلت', N'dastresietablet')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (246, N'مرتب سازی فاکتورها به ترتیب تاریخ', N'moratabsazifactortarikh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (169, N'مرور حسابها', N'moroorehesabha')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (259, N'مرور هزینه ها', N'moroorehazineha')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (179, N'مسیر حرکت ویزیتور', N'masireharekatevizitor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (227, N'معرفی اشخاص', N'moarefieashkhas')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (234, N'معرفی انبار', N'anbar')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (232, N'معرفی بانک ما', N'bankema')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (233, N'معرفی بانک مشتری', N'bankemoshtari')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (230, N'معرفی تفصیلی', N'moarefietafzili')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (258, N'معرفی چاپگر', N'moarefiechapgar')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (158, N'معرفی حسابهای کل و معین', N'kolmoin')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (236, N'معرفی درآمدها', N'moarefiedaramadha')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (205, N'معرفی دسته چک', N'dastecheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (229, N'معرفی راننده', N'moarefieranande')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (159, N'معرفی سوپر وایزر', N'supervizor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (231, N'معرفی صندوق', N'moarefiesandoogh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (240, N'معرفی کاربر', N'moarefiekarbar')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (222, N'معرفی کالا', N'moarefiekala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (228, N'معرفی گروه اشخاص', N'groupashkhas')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (223, N'معرفی گروه کالا', N'groupkala')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (224, N'معرفی ویزیتور', N'vizitor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (235, N'معرفی هزینه ها', N'moarefiehazineha')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (221, N'موجودی ابتدای دوره', N'mojoodieebtedayedooreanbar')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (286, N'موقعیت مکانی مشتریان روی نقشه', N'locationmoshtari')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (282, N'نرخنامه - لیست کالا چندقیمته دینامیک', N'chapkalaMulti')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (266, N'نرم افزار مالی', N'mali')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (189, N'نمودار فروش', N'nemoodareforoosh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (190, N'نمودار مقایسه ای ویزیتورها', N'nemoodaremoghayeseeivizitorha')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (152, N'نمودار واریزی ویزیتورها', N'nemoodarevarizevizitor')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (220, N'واحد اندازه گیری', N'vahedeandazegiri')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (202, N'واگذاری چک به بانک', N'vagozariecheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (150, N'وضعیت تسویه حواله', N'vaziatetasfiehavale')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (219, N'هشدار سررسید تاریخ', N'lalarmetarikh')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (199, N'هشدار سررسید چک', N'alarmecheck')
GO
INSERT [dbo].[tblMenuMaster] ([ID], [fldNameFarsi], [fldNameEnglish]) VALUES (207, N'هشدار سررسید فاکتورهای تسویه نشده', N'alarmsarresiefactor')
GO
SET IDENTITY_INSERT [dbo].[tblMenuMaster] OFF
GO







create TRIGGER [dbo].[tgDeleteOnlineBargashtAzForoosh]
   on [dbo].[tblBargashtAzForoosh]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='BargashtAzForoosh' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

					
				select @fldCode=fldShomareFactorForoosh from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'BargashtAzForoosh')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END




/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineBargashtAzForoosh]    Script Date: 12/9/2019 11:44:13 AM ******/
SET ANSI_NULLS ON
GO
ALTER TABLE [dbo].[tblBargashtAzForoosh] ENABLE TRIGGER [tgDeleteOnlineBargashtAzForoosh]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineBargashtAzForoosh]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgInsertUpdateOnlineBargashtAzForoosh]
on [dbo].[tblBargashtAzForoosh]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @Code bigint
	Select @Code=fldShomareFactorForoosh from inserted
	update tblBargashtAzForoosh Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactorForoosh=@Code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@Code and fldtype='BargashtAzForoosh'
		--end
END
GO
ALTER TABLE [dbo].[tblBargashtAzForoosh] ENABLE TRIGGER [tgInsertUpdateOnlineBargashtAzForoosh]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineBargashtAzKharid]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgDeleteOnlineBargashtAzKharid]
   on [dbo].[tblBargashtAzKharid]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='TblBargashtAzKharid' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

					
				select @fldCode=fldShomareFactorKharid from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'TblBargashtAzKharid')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END


GO
ALTER TABLE [dbo].[tblBargashtAzKharid] ENABLE TRIGGER [tgDeleteOnlineBargashtAzKharid]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineBargashtAzKharid]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgInsertUpdateOnlineBargashtAzKharid]
on [dbo].[tblBargashtAzKharid]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @Code bigint
	Select @Code=fldShomareFactorKharid from inserted
	update tblBargashtAzKharid Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactorKharid=@Code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@Code and fldtype='TblBargashtAzKharid'
		--end
END
GO
ALTER TABLE [dbo].[tblBargashtAzKharid] ENABLE TRIGGER [tgInsertUpdateOnlineBargashtAzKharid]
GO


/****** Object:  Trigger [dbo].[tgDeleteDaftarcheTellOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgDeleteDaftarcheTellOnline]
on [dbo].[tblDaftarcheTell]
after delete 
	as


	--Begin Transaction InsertRow
	Begin Try	

			declare	@fldCode bigint,@cnt bigint
			declare @Shomare nvarchar(50)
			set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='daftarchetell' )
	
			if @cnt is null
				set @cnt=1
			else
				set @cnt+=1



			select @fldCode=fldCodeTafzili from  deleted
			select @Shomare=fldShomare from  deleted
			--insert into tblTest7(fld2)
			--	values(@fldCode)
			if @Shomare is not null
				insert into tblDeleteList(id,fldCode,fldtype,fldShomare)
					values(@cnt,@fldCode,'daftarchetell',@Shomare)

end try
Begin Catch
--if @@TRANCOUNT > 0 
--	begin 
--		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
--	end

End Catch
GO
ALTER TABLE [dbo].[tblDaftarcheTell] ENABLE TRIGGER [tgDeleteDaftarcheTellOnline]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdatedaftarchetellOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertUpdatedaftarchetellOnline]
on [dbo].[tblDaftarcheTell]
after  insert ,Update
	as

	declare @Code bigint
	Select @Code=fldCodeTafzili from inserted
	update tblDaftarcheTell Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldCodeTafzili=@Code


	delete tblDeletelist where fldCode=@Code and fldtype='daftarchetell'
		--end
GO
ALTER TABLE [dbo].[tblDaftarcheTell] ENABLE TRIGGER [tgInsertUpdatedaftarchetellOnline]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineDaryaft]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgDeleteOnlineDaryaft]
on [dbo].[tblDaryaft]
after delete 
	as
	--IF not EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	--		CREATE TABLE [dbo].[tblKalaOnline](
	--			[fldCodeKala] [bigint] NOT NULL,
	--			[id] [bigint] NOT NULL
	--			)

	--	end

	   --Begin Transaction InsertRow
	      Begin Try	
				declare	@fldCodeKala bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='Daryaft' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCodeKala=fldShomareDaryaft from  deleted

				if @fldCodeKala is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCodeKala,'Daryaft')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch



GO
ALTER TABLE [dbo].[tblDaryaft] ENABLE TRIGGER [tgDeleteOnlineDaryaft]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineDaryaft]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertUpdateOnlineDaryaft]
on [dbo].[tblDaryaft]
after  insert ,Update
	as


	--IF NOT EXISTS(
	--  SELECT *
	--	  FROM INFORMATION_SCHEMA.COLUMNS
	--	  WHERE 
	--		TABLE_NAME = 'tblKala'
	--		AND COLUMN_NAME = 'fldDateUpdate')
	--	BEGIN
	--	  ALTER TABLE tblKala
	--		ADD fldDateUpdate DateTime
	--	END;

	declare @CodeKala bigint
	Select @CodeKala=fldShomareDaryaft from inserted
	update [tblDaryaft]  Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareDaryaft=@CodeKala

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@CodeKala and fldtype='Daryaft'
		--end
GO
ALTER TABLE [dbo].[tblDaryaft] ENABLE TRIGGER [tgInsertUpdateOnlineDaryaft]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineForoosh]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgDeleteOnlineForoosh]
   on [dbo].[tblForoosh]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='Foroosh' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

					
				select @fldCode=fldShomareFactorForoosh from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'Foroosh')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END



GO
ALTER TABLE [dbo].[tblForoosh] ENABLE TRIGGER [tgDeleteOnlineForoosh]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineForoosh]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgInsertUpdateOnlineForoosh]
on [dbo].[tblForoosh]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @Code bigint
	Select @Code=fldShomareFactorForoosh from inserted
	update tblForoosh Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactorForoosh=@Code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@Code and fldtype='Foroosh'
		--end
END
GO
ALTER TABLE [dbo].[tblForoosh] ENABLE TRIGGER [tgInsertUpdateOnlineForoosh]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineGroupAshkhase]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgDeleteOnlineGroupAshkhase]
   on [dbo].[tblGroupAshkhas]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='GroupAshkhas' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCode=fldGroupId from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'GroupAshkhas')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END


GO
ALTER TABLE [dbo].[tblGroupAshkhas] ENABLE TRIGGER [tgDeleteOnlineGroupAshkhase]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineGroupAshkhas]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgInsertUpdateOnlineGroupAshkhas]
on [dbo].[tblGroupAshkhas]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @Code bigint
	Select @Code=fldGroupId from inserted
	update tblGroupAshkhas Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldGroupId=@Code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@Code and fldtype='GroupAshkhas'
		--end
END
GO
ALTER TABLE [dbo].[tblGroupAshkhas] ENABLE TRIGGER [tgInsertUpdateOnlineGroupAshkhas]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineGroupKala]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgDeleteOnlineGroupKala]
   on [dbo].[tblGroupKala]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='GroupKala' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCode=fldGroupId from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'GroupKala')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END

GO
ALTER TABLE [dbo].[tblGroupKala] ENABLE TRIGGER [tgDeleteOnlineGroupKala]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineGroupKala]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgInsertUpdateOnlineGroupKala]
on [dbo].[tblGroupKala]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @code bigint
	Select @code=fldGroupId from inserted
	update tblGroupKala Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldGroupId=@code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@code and fldtype='GroupKala'
		--end
END
GO
ALTER TABLE [dbo].[tblGroupKala] ENABLE TRIGGER [tgInsertUpdateOnlineGroupKala]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgDeleteOnline]
on [dbo].[tblKala]
after delete 
	as
	--IF not EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	--		CREATE TABLE [dbo].[tblKalaOnline](
	--			[fldCodeKala] [bigint] NOT NULL,
	--			[id] [bigint] NOT NULL
	--			)

	--	end

	   --Begin Transaction InsertRow
	      Begin Try	
				declare	@fldCodeKala bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='kala' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCodeKala=fldCodeKala from  deleted

				if @fldCodeKala is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCodeKala,'kala')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch
GO
ALTER TABLE [dbo].[tblKala] ENABLE TRIGGER [tgDeleteOnline]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgInsertUpdateOnline]
on [dbo].[tblKala]
after  insert ,Update
	as


	--IF NOT EXISTS(
	--  SELECT *
	--	  FROM INFORMATION_SCHEMA.COLUMNS
	--	  WHERE 
	--		TABLE_NAME = 'tblKala'
	--		AND COLUMN_NAME = 'fldDateUpdate')
	--	BEGIN
	--	  ALTER TABLE tblKala
	--		ADD fldDateUpdate DateTime
	--	END;

	declare @CodeKala bigint
	Select @CodeKala=fldCodeKala from inserted
	update tblKala Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldCodeKala=@CodeKala

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@CodeKala and fldtype='kala'
		--end
GO
ALTER TABLE [dbo].[tblKala] ENABLE TRIGGER [tgInsertUpdateOnline]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineKharid]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgDeleteOnlineKharid]
   on [dbo].[tblKharid]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='Kharid' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

					
				select @fldCode=fldShomareFactorKharid from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'Kharid')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END



GO
ALTER TABLE [dbo].[tblKharid] ENABLE TRIGGER [tgDeleteOnlineKharid]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineKharid]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgInsertUpdateOnlineKharid]
on [dbo].[tblKharid]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @Code bigint
	Select @Code=fldShomareFactorKharid from inserted
	update tblKharid Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactorKharid=@Code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@Code and fldtype='Kharid'
		--end
END
GO
ALTER TABLE [dbo].[tblKharid] ENABLE TRIGGER [tgInsertUpdateOnlineKharid]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineMultiFeeDynamic]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgDeleteOnlineMultiFeeDynamic]
on [dbo].[tblMultiFeeDynamic]
after delete 
	as
	--IF not EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	--		CREATE TABLE [dbo].[tblKalaOnline](
	--			[fldCodeKala] [bigint] NOT NULL,
	--			[id] [bigint] NOT NULL
	--			)

	--	end

	   --Begin Transaction InsertRow
	      Begin Try	

				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='MultiFeeDynamic' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCode=(CONVERT(nvarchar,fldCodeSharh) + CONVERT(nvarchar,fldCodeKala))  from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'MultiFeeDynamic')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch



GO
ALTER TABLE [dbo].[tblMultiFeeDynamic] ENABLE TRIGGER [tgDeleteOnlineMultiFeeDynamic]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineMultiFeeDynamic]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertUpdateOnlineMultiFeeDynamic]
on [dbo].[tblMultiFeeDynamic]
after  insert ,Update
	as


	--IF NOT EXISTS(
	--  SELECT *
	--	  FROM INFORMATION_SCHEMA.COLUMNS
	--	  WHERE 
	--		TABLE_NAME = 'tblKala'
	--		AND COLUMN_NAME = 'fldDateUpdate')
	--	BEGIN
	--	  ALTER TABLE tblKala
	--		ADD fldDateUpdate DateTime
	--	END;

	declare @Code bigint
	Select @Code= (CONVERT(nvarchar,fldCodeSharh) + CONVERT(nvarchar,fldCodeKala)) from inserted
	update [tblMultiFeeDynamic] Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) 
	where (CONVERT(nvarchar,fldCodeSharh) + CONVERT(nvarchar,fldCodeKala)) = @Code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@Code and fldtype='MultiFeeDynamic'
		--end
GO
ALTER TABLE [dbo].[tblMultiFeeDynamic] ENABLE TRIGGER [tgInsertUpdateOnlineMultiFeeDynamic]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlinePardakht]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgDeleteOnlinePardakht]
on [dbo].[tblPardakht]
after delete 
	as
	--IF not EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	--		CREATE TABLE [dbo].[tblKalaOnline](
	--			[fldCodeKala] [bigint] NOT NULL,
	--			[id] [bigint] NOT NULL
	--			)

	--	end

	   --Begin Transaction InsertRow
	      Begin Try	
				declare	@fldCodeKala bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='Pardakht' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCodeKala=fldShomarePardakht from  deleted

				if @fldCodeKala is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCodeKala,'Pardakht')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch


GO
ALTER TABLE [dbo].[tblPardakht] ENABLE TRIGGER [tgDeleteOnlinePardakht]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlinePardakht]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertUpdateOnlinePardakht]
on [dbo].[tblPardakht]
after  insert ,Update
	as


	--IF NOT EXISTS(
	--  SELECT *
	--	  FROM INFORMATION_SCHEMA.COLUMNS
	--	  WHERE 
	--		TABLE_NAME = 'tblKala'
	--		AND COLUMN_NAME = 'fldDateUpdate')
	--	BEGIN
	--	  ALTER TABLE tblKala
	--		ADD fldDateUpdate DateTime
	--	END;

	declare @CodeKala bigint
	Select @CodeKala=fldShomarePardakht from inserted
	update tblPardakht  Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomarePardakht=@CodeKala

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@CodeKala and fldtype='Pardakht'
		--end
GO
ALTER TABLE [dbo].[tblPardakht] ENABLE TRIGGER [tgInsertUpdateOnlinePardakht]
GO
/****** Object:  Trigger [dbo].[tgDeleteRizeBargastAzForooshOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgDeleteRizeBargastAzForooshOnline]
on [dbo].[tblRizeBargashtAzForoosh]
after delete 
	as

	--Begin Transaction InsertRow
	--Begin Try	

	declare	@ShomareForoosh bigint,@cnt bigint

	set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='rizebargashtazforoosh' )
	
	if @cnt is null
		set @cnt=1
	else
		set @cnt+=1

	select @ShomareForoosh=fldShomareFactor from  deleted

	if @ShomareForoosh is not null
		insert into tblDeleteList(id,fldCode,fldtype)
			values(@cnt,@ShomareForoosh,'rizebargashtazforoosh')

--end try
--Begin Catch
----if @@TRANCOUNT > 0 
--	begin 
--		--RollBack Transaction InsertRow;
--		declare @m bigint
--		set @m=1
--	end

--End Catch
GO
ALTER TABLE [dbo].[tblRizeBargashtAzForoosh] ENABLE TRIGGER [tgDeleteRizeBargastAzForooshOnline]
GO
/****** Object:  Trigger [dbo].[tgInsertRizeBargashtAzForooshOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertRizeBargashtAzForooshOnline]
on [dbo].[tblRizeBargashtAzForoosh]
after  insert ,Update
	as


	declare @ShomareForoosh bigint
	Select @ShomareForoosh=fldShomareFactor from inserted
	update tblRizeBargashtAzForoosh Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactor=@ShomareForoosh

	delete tblDeletelist where fldCode=@ShomareForoosh and fldtype='rizebargashtazforoosh'
		--end
GO
ALTER TABLE [dbo].[tblRizeBargashtAzForoosh] ENABLE TRIGGER [tgInsertRizeBargashtAzForooshOnline]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineRizeBargashtAzKharid]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgDeleteOnlineRizeBargashtAzKharid]
   on [dbo].[tblRizeBargashtAzKharid]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='BargashtAzKharid' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

					
				select @fldCode=fldShomareFactor from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'BargashtAzKharid')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END


GO
ALTER TABLE [dbo].[tblRizeBargashtAzKharid] ENABLE TRIGGER [tgDeleteOnlineRizeBargashtAzKharid]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineRizeBargashtAzKharid]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
create TRIGGER [dbo].[tgInsertUpdateOnlineRizeBargashtAzKharid]
on [dbo].[tblRizeBargashtAzKharid]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @Code bigint
	Select @Code=fldShomareFactor from inserted
	update [tblRizeBargashtAzKharid] Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactor=@Code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@Code and fldtype='BargashtAzKharid'
		--end
END
GO
ALTER TABLE [dbo].[tblRizeBargashtAzKharid] ENABLE TRIGGER [tgInsertUpdateOnlineRizeBargashtAzKharid]
GO
/****** Object:  Trigger [dbo].[tgDeleteRizeForooshOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgDeleteRizeForooshOnline]
on [dbo].[tblRizeForoosh]
after delete 
	as

	--Begin Transaction InsertRow
	Begin Try	

	declare	@ShomareForoosh bigint,@cnt bigint

	set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='rizeforoosh' )
	
	if @cnt is null
		set @cnt=1
	else
		set @cnt+=1

	select @ShomareForoosh=fldShomareFactor from  deleted

	if @ShomareForoosh is not null
		insert into tblDeleteList(id,fldCode,fldtype)
			values(@cnt,@ShomareForoosh,'rizeforoosh')

end try
Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch
GO
ALTER TABLE [dbo].[tblRizeForoosh] ENABLE TRIGGER [tgDeleteRizeForooshOnline]
GO
/****** Object:  Trigger [dbo].[tgInsertRizeForooshOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertRizeForooshOnline]
on [dbo].[tblRizeForoosh]
after  insert ,Update
	as


	declare @ShomareForoosh bigint
	Select @ShomareForoosh=fldShomareFactor from inserted
	update tblRizeForoosh Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactor=@ShomareForoosh

	delete tblDeletelist where fldCode=@ShomareForoosh and fldtype='rizeforoosh'
		--end
GO
ALTER TABLE [dbo].[tblRizeForoosh] ENABLE TRIGGER [tgInsertRizeForooshOnline]
GO
/****** Object:  Trigger [dbo].[tgDeleteRizekharidOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgDeleteRizekharidOnline]
on [dbo].[tblRizeKharid]
after delete 
	as


	--Begin Transaction InsertRow
	Begin Try	
		declare	@ShomareForoosh bigint,@cnt bigint

		set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='rizekharid' )
	
		if @cnt is null
			set @cnt=1
		else
			set @cnt+=1

		select @ShomareForoosh=fldShomareFactor from  deleted

		if @ShomareForoosh is not null
			insert into tblDeleteList(id,fldCode,fldtype)
				values(@cnt,@ShomareForoosh,'rizekharid')

end try
Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch
GO
ALTER TABLE [dbo].[tblRizeKharid] ENABLE TRIGGER [tgDeleteRizekharidOnline]
GO
/****** Object:  Trigger [dbo].[tgInsertRizekharidOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertRizekharidOnline]
on [dbo].[tblRizeKharid]
after  insert ,Update
	as


	declare @ShomareForoosh bigint
	Select @ShomareForoosh=fldShomareFactor from inserted
	update tblRizekharid Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldShomareFactor=@ShomareForoosh

	delete tblDeletelist where fldCode=@ShomareForoosh and fldtype='rizekharid'
		--end
GO
ALTER TABLE [dbo].[tblRizeKharid] ENABLE TRIGGER [tgInsertRizekharidOnline]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlineSharheFeeDynamic]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgDeleteOnlineSharheFeeDynamic]
on [dbo].[tblSharheFeeDynamic]
after delete 
	as
	--IF not EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	--		CREATE TABLE [dbo].[tblKalaOnline](
	--			[fldCodeKala] [bigint] NOT NULL,
	--			[id] [bigint] NOT NULL
	--			)

	--	end

	   --Begin Transaction InsertRow
	      Begin Try	

				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='SharheFeeDynamic' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCode=fldCodeSharh from  deleted
				
				--delete tblTest7
				--INSERT        iNTO              tblTest7( fld2)
				--VALUES        (@fldCode)		

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'SharheFeeDynamic')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch


GO
ALTER TABLE [dbo].[tblSharheFeeDynamic] ENABLE TRIGGER [tgDeleteOnlineSharheFeeDynamic]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlineSharheFeeDynamic]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertUpdateOnlineSharheFeeDynamic]
on [dbo].[tblSharheFeeDynamic]
after  insert ,Update
	as


	--IF NOT EXISTS(
	--  SELECT *
	--	  FROM INFORMATION_SCHEMA.COLUMNS
	--	  WHERE 
	--		TABLE_NAME = 'tblKala'
	--		AND COLUMN_NAME = 'fldDateUpdate')
	--	BEGIN
	--	  ALTER TABLE tblKala
	--		ADD fldDateUpdate DateTime
	--	END;

	declare @code bigint
	Select @code= fldCodeSharh from inserted
	update [tblSharheFeeDynamic] Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldCodeSharh =@code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@code and fldtype='SharheFeeDynamic'
		--end
GO
ALTER TABLE [dbo].[tblSharheFeeDynamic] ENABLE TRIGGER [tgInsertUpdateOnlineSharheFeeDynamic]
GO
/****** Object:  Trigger [dbo].[tgDeleteSanadOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgDeleteSanadOnline]
on [dbo].[tblSodooreSanad]
after delete 
	as

	--Begin Transaction InsertRow
	Begin Try	
			declare	@Sanad bigint,@cnt bigint

			set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='sanad' )
	
			if @cnt is null
				set @cnt=1
			else
				set @cnt+=1

			select @Sanad=fldSanad from  deleted

			if @Sanad is not null
				insert into tblDeleteList(id,fldCode,fldtype)
					values(@cnt,@Sanad,'sanad')

	end try
Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch
GO
ALTER TABLE [dbo].[tblSodooreSanad] ENABLE TRIGGER [tgDeleteSanadOnline]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateSodooreSanadOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertUpdateSodooreSanadOnline]
on [dbo].[tblSodooreSanad]
after  insert ,Update
	as


	declare @Sanad bigint
	Select @Sanad=fldSanad from inserted
	update tblSodooreSanad Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldSanad=@Sanad

	delete tblDeletelist where fldCode=@Sanad and fldtype='sanad'
		--end
GO
ALTER TABLE [dbo].[tblSodooreSanad] ENABLE TRIGGER [tgInsertUpdateSodooreSanadOnline]
GO
/****** Object:  Trigger [dbo].[tgDeleteTafziliOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE trigger [dbo].[tgDeleteTafziliOnline]
on [dbo].[tblTafzili]
after delete 
	as
	--IF not EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	--		CREATE TABLE [dbo].[tblKalaOnline](
	--			[fldCodeKala] [bigint] NOT NULL,
	--			[id] [bigint] NOT NULL
	--			)

	--	end

	--Begin Transaction InsertRow
	      Begin Try	
					declare	@fldCode bigint,@cnt bigint

					set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='ashkhas' )
	
					if @cnt is null
						set @cnt=1
					else
						set @cnt+=1

					select @fldCode=fldCodeTafzili from  deleted

					if @fldCode is not null
						insert into tblDeleteList(id,fldCode,fldtype)
							values(@cnt,@fldCode,'ashkhas')

			end try
Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end

End Catch
GO
ALTER TABLE [dbo].[tblTafzili] ENABLE TRIGGER [tgDeleteTafziliOnline]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateTafziliOnline]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [dbo].[tgInsertUpdateTafziliOnline]
on [dbo].[tblTafzili]
after  insert ,Update
	as


	declare @Code bigint
	Select @Code=fldCodeTafzili from inserted
	update tblTafzili Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where fldCodeTafzili=@Code

	delete tblDeletelist where fldCode=@Code and fldtype='ashkhas'
		--end
GO
ALTER TABLE [dbo].[tblTafzili] ENABLE TRIGGER [tgInsertUpdateTafziliOnline]
GO
/****** Object:  Trigger [dbo].[tgDeleteOnlinetblVahed]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Create TRIGGER [dbo].[tgDeleteOnlinetblVahed]
   on [dbo].[tblVahed]
after delete 

AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	 Begin Try	
				declare	@fldCode bigint,@cnt bigint

				set @cnt=(Select count(fldCode) from tblDeleteList where fldtype='Vahed' )
	
				if @cnt is null
					set @cnt=1
				else
					set @cnt+=1

				select @fldCode=ID  from  deleted

				if @fldCode is not null
					insert into tblDeleteList(id,fldCode,fldtype)
						values(@cnt,@fldCode,'Vahed')

			End Try

Begin Catch
--if @@TRANCOUNT > 0 
	begin 
		--RollBack Transaction InsertRow;
		declare @m bigint
		set @m=1
	end



    -- Insert statements for trigger here
end catch
END
GO
ALTER TABLE [dbo].[tblVahed] ENABLE TRIGGER [tgDeleteOnlinetblVahed]
GO
/****** Object:  Trigger [dbo].[tgInsertUpdateOnlinetblVahed]    Script Date: 4/26/2020 3:08:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[tgInsertUpdateOnlinetblVahed]
on [dbo].[tblVahed]
   AFTER  insert ,Update
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	declare @code bigint
	Select @code=ID from inserted
	update tblVahed Set fldDateUpdate=(Select CONVERT(VARCHAR(19), GETDATE(), 120)) where ID=@code

	--IF  EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
 --          WHERE TABLE_NAME = N'tblKalaOnline')
	--	BEGIN
	delete tblDeletelist where fldCode=@code and fldtype='Vahed'
		--end
END
GO
ALTER TABLE [dbo].[tblVahed] ENABLE TRIGGER [tgInsertUpdateOnlinetblVahed]
GO


