데이터 소스 SourceType="SQL"
5514 단어 uyumsoft
<tabpage Caption="Kaynak İzle">
<section Caption="Teklifler" CaptionVisibility="True" Visibility="True">
<row>
<cell colspan="1">
<control FieldName="Grid1" ControlType="GridEdit" Caption="Teklifler" HorizontalScrollBarMode="Hidden" ServerAttribute="KeyFieldName=OFFER_M_ID">
<DataSource SourceType="SQL" Source="
SELECT
OFM.OFFER_M_ID,
OFD.OFFER_D_ID,
TO_CHAR(OFM.DOC_DATE,'DD.MM.YYYY') AS TEKLIF_TARIH,
OFM.DOC_NO AS TEKLIF_NO,
ITE.DCARD_CODE AS STOK_KOD,
ITE.DCARD_NAME AS STOK_AD,
OFD.QTY AS MIKTAR,
OFD.AMT_WITH_DISC_TRA / OFD.QTY AS BIRIM_FIYAT
FROM PSMT_OFFER_M OFM
LEFT JOIN PSMT_OFFER_D OFD ON OFM.OFFER_M_ID = OFD.OFFER_M_ID
LEFT JOIN INVW_ITEM_TABLES ITE ON OFD.DCARD_ID = ITE.DCARD_ID
WHERE
1=1
AND OFD.OFFER_M_ID IN (SELECT ORD.SOURCE_M_ID FROM PSMT_ORDER_D ORD WHERE ORD.ORDER_M_ID = {Id})"/>
<GridColumn FieldName="TEKLIF_TARIH" ControlType="DateEdit" Caption="Teklif Tarih" Width="45"> </GridColumn>
<GridColumn FieldName="TEKLIF_NO" ControlType="TextEdit" Caption="Teklif No" Width="45"> </GridColumn>
<GridColumn FieldName="STOK_KOD" ControlType="TextEdit" Caption="Stok Kod" Width="75"> </GridColumn>
<GridColumn FieldName="STOK_AD" ControlType="TextEdit" Caption="Stok Ad" Width="250"> </GridColumn>
<GridColumn FieldName="MIKTAR" ControlType="SpinEdit" Caption="Miktar" Width="45"> </GridColumn>
<GridColumn FieldName="BIRIM_FIYAT" ControlType="SpinEdit" Caption="Birim Fiyat" Width="45"> </GridColumn>
</control>
</cell>
</row>
</section>
<section Caption="Talepler" CaptionVisibility="True" Visibility="True">
<row>
<cell colspan="1">
<control FieldName="Grid2" ControlType="GridEdit" Caption="Talepler" HorizontalScrollBarMode="Hidden" ServerAttribute="KeyFieldName=REQUEST_M_ID">
<MasterGrid MasterProperty="Grid1" MasterKey="OFFER_M_ID" DetailKey="OFFER_M_ID" />
<DataSource SourceType="SQL" Source="
SELECT
concat('GeneralCard.aspx?CommandName=RequestMCollection.Analyze&ObjectId=',RQM.REQUEST_M_ID) AS URL,
TO_CHAR(RQM.DOC_DATE,'DD.MM.YYYY') AS TALEP_TARIH,
RQM.DOC_NO AS TALEP_NO,
REG.REGISTER_FULL_NAME AS PERSONEL,
ITE.DCARD_CODE AS STOK_KOD,
ITE.DCARD_NAME AS STOK_AD,
RQD.QTY AS MIKTAR,
RQD.NOTE1 AS ACIKLAMA1,
RQD.NOTE2 AS ACIKLAMA2,
RQD.NOTE3 AS ACIKLAMA3,
RQD.NOTE_LARGE AS NOT1
FROM PSMT_REQUEST_M RQM
LEFT JOIN PSMT_REQUEST_D RQD ON RQM.REQUEST_M_ID = RQD.REQUEST_M_ID
LEFT JOIN INVW_ITEM_TABLES ITE ON RQD.DCARD_ID = ITE.DCARD_ID
LEFT JOIN HRMD_REGISTER REG ON RQD.REGISTER_ID = REG.REGISTER_ID
WHERE
1=1
AND RQD.REQUEST_D_ID IN (SELECT OFD.SOURCE_D_ID FROM PSMT_OFFER_D OFD WHERE OFD.OFFER_M_ID ={Grid1.OFFER_M_ID} AND OFD.OFFER_D_ID={Grid1.OFFER_D_ID})"/>
<GridColumn FieldName="TALEP_TARIH" ControlType="TextEdit" Caption="Talep Tarih" Width="50"></GridColumn>
<GridColumn FieldName="URL" ControlType="LinkEdit" TextField="TALEP_NO" Caption="Talep No" Width="50" NavigateUrlFormatString="{0}" ServerAttribute="PropertiesHyperLinkEdit-Target=_blank"></GridColumn>
<GridColumn FieldName="PERSONEL" ControlType="TextEdit" Caption="Personel" Width="50"></GridColumn>
<GridColumn FieldName="STOK_KOD" ControlType="TextEdit" Caption="Stok Kod" Width="75"></GridColumn>
<GridColumn FieldName="STOK_AD" ControlType="TextEdit" Caption="Stok Ad" Width="250"></GridColumn>
<GridColumn FieldName="MIKTAR" ControlType="SpinEdit" Caption="Miktar" Width="50"></GridColumn>
<GridColumn FieldName="ACIKLAMA1" ControlType="TextEdit" Caption="Açıklama1" Width="50"></GridColumn>
<GridColumn FieldName="ACIKLAMA2" ControlType="TextEdit" Caption="Açıklama2" Width="50"></GridColumn>
<GridColumn FieldName="ACIKLAMA3" ControlType="TextEdit" Caption="Açıklama3" Width="50"></GridColumn>
<GridColumn FieldName="NOT1" ControlType="TextEdit" Caption="Not" Width="50"></GridColumn>
<GridColumn FieldName="NOT1" ControlType="TextEdit" Caption="Not" Width="50"></GridColumn>
</control>
<control FieldName="btnDbSave" ControlType="Button" Caption="Ara" Width="100">
<ClientSideEvents Click="function (s,e) {GetControl('TownList').PerformCallback('Refresh')} "> </ClientSideEvents>
</control>
</cell>
</row>
</section>
</tabpage>
Reference
이 문제에 관하여(데이터 소스 SourceType="SQL"), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/fsatihin/datasource-sourcetypesql-4jkh텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)