Dinamik XML 버튼, 업데이트
6053 단어 uyumsoft
<cell colspan="2">
<control FieldName="LoansRefNoEnabled" ControlType="Button" Caption="Kredi Ref No Aktif Et" Width="150">
<ClientSideEvents Click="function(s, e) {GetControl('LoansRefNo').SetEnabled(true);}"></ClientSideEvents>
</control>
</cell>
<cell colspan="2">
<control FieldName="LoansRefNoUpdate" ControlType="Button" Caption="Kredi Ref No Değiştir" Width="150">
<ClientSideEvents Click="function fn_YeniRefNo() {
var LoansRefNo = GetControlValue('LoansRefNo');
ClientExecSQL('UPDATE FIND_LOANS_M M SET M.LOANS_REF_NO = @pLoansRefNo WHERE M.LOANS_M_ID=@Id',
function (p) {
alert('İşlem Başarılı.!');location.reload();
},
LoansRefNo,
GetControlValue('Id')
)
}"></ClientSideEvents>
</control>
</cell>
<cell colspan="2">
<control FieldName="CommitmentClosureEnable" ControlType="Button" Caption="Alanları Aktif Et" Width="150" Height="10" ControlEditEnabled="False">
<ClientSideEvents Click="function(s, e) {GetControl('CommitmentClosureAmt').SetEnabled(true);GetControl('CommitmentClosureCurCode').SetEnabled(true);GetControl('CommitmentClosureDate').SetEnabled(true);}"></ClientSideEvents>
</control>
</cell>
<cell colspan="2">
<control FieldName="CommitmentClosureUpdate" ControlType="Button" Caption="Güncelle" Width="150">
<ClientSideEvents Click="function fn_Update() {
var pCommitmentClosureAmt = ConvertDecimalToStr(GetControlValue('CommitmentClosureAmt'));
var pCommitmentClosureCurId = GetControlValue('CommitmentClosureCurId');
var pCommitmentClosureDate = GetControlValue('CommitmentClosureDate');
ClientExecSQL('UPDATE FIND_LOANS_M M SET M.COMMITMENT_CLOSURE_AMT = @pCommitmentClosureAmt, M.COMMITMENT_CLOSURE_CUR_ID = @pCommitmentClosureCurId, M.COMMITMENT_CLOSURE_DATE = @pCommitmentClosureDate WHERE M.LOANS_M_ID=@Id',
function (p) {alert('İşlem Başarılı.!');location.reload();},
pCommitmentClosureAmt,
pCommitmentClosureCurId,
pCommitmentClosureDate,
GetControlValue('Id')
)
}"></ClientSideEvents>
</control>
</cell>
var pCommitmentClosureAmt = ConvertDecimalToStr(GetControlValue('CommitmentClosureAmt'));
<tabpage Caption="İhracat Taahütü">
<section Visibility="false" ColumnCount="12">
<row>
<cell colspan="5">
<section Visibility="false">
<row>
<cell>
<control FieldName="ZZCommitmentClosureAmt" ControlType="SpinEdit" Caption="Taahüt Kapama Tutarı / Para Birimi" DecimalPlaces="Tutar" DefaultValue="0" CaptionSize="210"> </control>
</cell>
<cell>
<control FieldName="ZZCommitmentClosCurCode" ControlType="ButtonEdit" MaxLength="50" Width="90" Caption="Para Birimi" CaptionVisible="false">
<DataSource ReturnProperties="Id;CurCode" ReturnedProperties="ZZCommitmentClosureCurId;ZZCommitmentClosCurCode" Filter="" FilterValues="" ListPropertyName="CurCode" Source="CurrencyCollection.Show"> </DataSource>
</control>
</cell>
<cell colspan="2">
<control FieldName="CommitmentClosureEnable" ControlType="Button" Caption="Alanları Aktif Et" Width="150" Height="10" ControlEditEnabled="False">
<ClientSideEvents Click="function(s, e) {GetControl('ZZCommitmentClosureAmt').SetEnabled(true);GetControl('ZZCommitmentClosCurCode').SetEnabled(true);GetControl('ZZCommitmentClosureDate').SetEnabled(true);}"></ClientSideEvents>
</control>
</cell>
<cell colspan="2">
<control FieldName="CommitmentClosureUpdate" ControlType="Button" Caption="Güncelle" ControlEditEnabled="False" Width="150">
<ClientSideEvents Click="function fn_Update() {
var pZZCommitmentClosureAmt = ConvertDecimalToStr(GetControlValue('ZZCommitmentClosureAmt'));
var pZZCommitmentClosureCurId = GetControlValue('ZZCommitmentClosureCurId');
var pZZCommitmentClosureDate = GetControlValue('ZZCommitmentClosureDate');
ClientExecSQL('UPDATE FINT_ROTATING_LOANS M SET M.ZZ_COMMITMENT_CLOS_AMT = @pZZCommitmentClosureAmt, M.ZZ_COMMITMENT_CLOS_CUR_ID = @pZZCommitmentClosureCurId, M.ZZ_COMMITMENT_CLOS_DATE = @pZZCommitmentClosureDate WHERE M.ROTATING_LOANS_ID=@Id',
function (p) {alert('İşlem Başarılı.!');location.reload();},
pZZCommitmentClosureAmt,
pZZCommitmentClosureCurId,
pZZCommitmentClosureDate,
GetControlValue('Id')
)
}"></ClientSideEvents>
</control>
</cell>
<cell colspan="1">
<control FieldName="ZZCommitmentClosureCurId" ControlType="TextEdit" ControlVisible="false" CaptionVisible="false" ControlEnabled="false"></control>
</cell>
</row>
<row>
<cell>
<control FieldName="ZZCommitmentClosureDate" ControlType="DateEdit" Caption="Taahüt Kapama Tarihi" CaptionSize="210"> </control>
</cell>
</row>
</section>
</cell>
</row>
</section>
</tabpage>
Reference
이 문제에 관하여(Dinamik XML 버튼, 업데이트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/fsatihin/dinamik-xml-buton-update-8h9텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)