programming reference

کد مینی اپ های مختلف را در این بخش مشاهده کنید.

تصدیق اصالت سند

تصدیق اصالت سند

صفحه ی اول

 

نمای مینی اپ به صورت زیر میباشد

image-1699358726972.png

 

 

image-1699366025472.png

کد ها

<page id="main-page" title="تصدیق اصالت سند" layout="linear_vertical" margin="0" padding="16"
      scrollable="false" gravity="top" height="match_parent" width="match_parent" clearBackStack="true">
    <include layout="pages/main/main.js.appsan" />

   <frame id="content" layout="linear_vertical" margin="0" padding="0" weightsum="1" scrollable="false"
          height="match_parent">

       <frame layout="linear_vertical" gravity="top" margin="0" padding="0" scrollable="true" weight="1" weightsum="1">

           <frame layout="linear_horizontal" weightsum="1" background="#D5E3FF"
                  reverse="true" padding_bottom="10" layoutgravity="top"
                  padding_top="10" padding_left="16" padding_right="16"
                  borderCornerRadius="4" >

               <img src="images/warning.png" width="24" height="24" scaleType="fit_center"/>
               <text weight="1" textsize="14" textcolor="#0164BC" textstyle="normal"
                     text="اسناد ثبت شده از سال ۱۳۹۳ به بعد در سامانه می‌باشد." />
           </frame>


           <frame layout="linear_vertical" margin_top="16" margin="0" width="match_parent">

               <text textsize="16" textcolor="#424750" textstyle="bold"
                     text="تصدیق اصالت سند اسناد رسمی" />

               <img src="images/header.png" width="91"
                    height="91" scaleType="fit_center"/>

               <frame layout="linear_vertical" margin="0"
                      margin_top="16" margin_bottom="32" width="match_parent">

                   <material-textinput id="doc_text_id" margin_left="10" margin_right="10"
                                       rtl="true" expandHint="true" borderCornerRadius="4" width="match_parent"
                                       erroricon="images/error_icon.png" hint="شناسه سند" margin="0"
                                        >

                       <textinput hintsize="11" hintcolor="#424750" textsize="11" textcolor="black" maxlength="18"
                                  id="doc_id" padding_top="16" width="match_parent"
                                  padding_bottom="16" padding_right="12"
                                  padding_left="12" inputtype="number"
                                  onChange="script/main-script:check_empty_fields()"/>

                   </material-textinput>


                   <material-textinput margin_left="10" margin_right="10" expandHint="true" rtl="true"
                                       endiconmode="password_toggle" showendicon="true"
                                       hint="رمز تصدیق" borderCornerRadius="4"
                                       hideArrow="true" margin_top="16" margin="0" >

                       <textinput hintsize="11" hintcolor="#424750" textsize="11" textcolor="black" id="pass_id"
                                  padding_top="16" padding_bottom="16" padding_right="12" borderCornerRadius="4"
                                  padding_left="12" inputtype="number_password"
                                  onChange="script/main-script:check_empty_fields()"/>

                   </material-textinput>
               </frame>

           </frame>
       </frame>

       <frame layout="frame" layoutgravity="bottom_center" margin="0" >
           <button height="wrap_content" onclick="script/main-script:check_inputs()"
                   textsize="14" id="btn_id"
                   width="match_parent" text="بررسی" textcolor="white" background="#92C0E2"
                   borderCornerRadius="4" elevation="0" enabled="false" />
       </frame>
   </frame>

</page>

<include layout="pages/main/dialogs/waiting.xml.appsan" />
<include layout="pages/result/result.xml.appsan" />
<include layout="pages/main/dialogs/waiting.js.appsan" />

<script id="main-script">

    function check_empty_fields(id='doc_id', password='pass_id', btn='btn_id') {
        if (Appsan.findElementById(password).value.length > 0 ) {
            Appsan.setProperty(btn, 'background', '#0164BC');
            Appsan.setProperty(btn, 'enabled', 'true');
            return true;
        } else {
            Appsan.setProperty(btn, 'background', '#92C0E2');
            Appsan.setProperty(btn, 'enabled', 'false');
            return false;
        }
    }

    function check_inputs(doc_id='doc_id', password='pass_id') {
        let id = Appsan.findElementById(doc_id).value
        let pass = Appsan.findElementById(password).value
        let valid_id_number = 18

        if (check_empty_fields()) {
            if (id.length === valid_id_number){
                Appsan.setProperty('doc_text_id', 'showError', 'false');
                Appsan.runAction('dialog/waiting-dialog');

            } else {
                Appsan.setProperty('doc_text_id', 'showError', 'true');
                Appsan.setProperty('doc_text_id', 'error', 'تعداد ارقام وارد شده صحیح نمی‌باشد.');
            }
        }
    }

</script>

 

 

 

تصدیق اصالت سند

دیالوگ صفحه اول

نمای دیالوگ به صورت زیر است

image-1699432938202.png

 

کد

<dialog id="waiting-dialog" borderCornerRadius="4" height="wrap_content" margin="32"
        background="nocolor" onshown="script/waiting_script:autoCloseDialog()">

    <script id="waiting_script">
        function autoCloseDialog() {
            let id = Appsan.findElementById('doc_id').value
            let pass = Appsan.findElementById('pass_id').value

            try {
                HTTPClient.post('http://5.253.24.175:8001/api/v1/documentVerification/getdata/', {
                        NationalRegisterNo: id,
                        SecretNo: pass
                    },
                    {
                        headers: {
                            "Content-Type": "application/json",
                            "Authorization":"Bearer eyJhbGciOiJIUzUxMiJ9.eyJtaW5pQXBwTmFtZSI6ImFwcDphZG1pbjpzYWJ0LXRhc2RpZ2gtc2FuYWQiLCJ1c2VybmFtZSI6IjExMTExMTExMTEiLCJzdWIiOiJtaW5pQXBwIiwiaWF0IjoxNjk5MDQzNTI3LCJleHAiOjE2OTk5MDc1Mjd9.S0133PWjzZoxlEELcvXymWj748dpDynpzQ9xZa3IzdMAfL_2mKvx_L1QR8yO08ttdGzJGMfykCHF_ZEb8XHZng",
                            //  "user-token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJhZml0NzlQUmdQZWZ2VlgzSWdBSk9GdmZUeF8ta3BYamM4c2NIRDVsaGl3In0.eyJleHAiOjE2OTg5NjIzNDcsImlhdCI6MTY5ODkyNjM0NywianRpIjoiMDEwNTIwYjItNTI2NC00ZjFiLWI0ZGUtOTY1NTVjZDA4MmZiIiwiaXNzIjoiaHR0cHM6Ly9hdXRoLXNlcnZlci1zZWN1cml0eS1zb2MuYXBwcy5sYWIubm90YXJ5LmlyL3JlYWxtcy9zdXBlcmFwcCIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJmMzgzNTg3OS0xOWQ0LTQ2MzUtOGQ4My0yMDRlNGQ4Y2Q4NTEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJzdXBlcmFwcCIsInNlc3Npb25fc3RhdGUiOiIzYzM2OGJmOC04YThmLTRjMWUtOWMzYS00MGEwMjE0NDczZmUiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbIi8qIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIiwiZGVmYXVsdC1yb2xlcy1zdXBlcmFwcCIsImNvbnN1bWVyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwic2lkIjoiM2MzNjhiZjgtOGE4Zi00YzFlLTljM2EtNDBhMDIxNDQ3M2ZlIiwiZmF0aGVyTmFtZSI6Itiz2YrYr9mF2K3ZhdmI2K8iLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImJpcnRoZGF0ZSI6IjEzNjgvMDMvMjYiLCJnZW5kZXIiOiLZhdix2K8iLCJzaGVuYXNuYW1lTm8iOiIwMDEwMzkxNDI4IiwiTXlHcm91cCI6W10sInByZWZlcnJlZF91c2VybmFtZSI6IjAwMTAzOTE0MjgiLCJnaXZlbl9uYW1lIjoi2LPZitiv2YfYp9i02YUiLCJwaG9uZU51bWJlciI6IjA5MjE3MTkyMjUzIiwic2VyaWFsIjoiNjAxNTQyIiwibmFtZSI6Itiz2YrYr9mH2KfYtNmFINi52YTZiNmK2KfZhiDYtNmH2LHZiiIsImJpcnRoTG9jIjoi2KrZh9ix2KfZhiAiLCJzZXJpIjoi2KczNSIsImZhbWlseV9uYW1lIjoi2LnZhNmI2YrYp9mGINi02YfYsdmKIiwibmF0aW9uQ29kZSI6IjAwMTAzOTE0MjgifQ.vce5LgwA9b9fRGyTZJ_VqajYfpK4ghlgEG3dHvmm4IxELkDUPhgktvmBAKcfyyn2vV1GubvswYuzwTt-RyQCCDbho0Jvz-w98MNtedQ2RDBLsn0yPaziX7537aNkjm5NDzxyQTsSokvLro9k7toN65ubWjp-Wh_ffb3r7gGHgAdrea82kHqKfo5lbPJ-qr9fU3qOEsAt5oJ79dRcGfUge6FGN1YRXhbGFlCQ1A-PU6523d2jcibeM2F6vpkVeoe04MYoXwkJ-Qdt9sz3TaUmLEnY1T49BtTEy1-1XVUixg_pqhFo3tuOWB0LyzwipnfQvtl-ydpiHYkP-b3cl7oE8A"
                        }
                    }).subscribe(res => {
                    Appsan.setVariable('response', JSON.stringify(res))
                    if (res && res.succseed === 'true' && res.ExistDoc === 'true')
                        Appsan.runAction('app/closeDialog:waiting-dialog;page/result-page');
                    else
                        Appsan.runAction('app/closeDialog:waiting-dialog;page/result-not-found');

                }, err => {
                    Appsan.runAction('snackbar/errorSnakeBar');
                    Appsan.runAction('app/closeDialog:waiting-dialog');
                });
            } catch (e) {
                Appsan.runAction('snackbar/errorSnakeBar');
                Appsan.runAction('app/closeDialog:waiting-dialog');
            }

        }
    </script>


    <frame layout="linear_vertical" background="white" margin="0" borderCornerRadius="8">
        <frame layout="linear_vertical" padding="16" margin="0">
            <progressbar layout="circular" color="#0164BC"/>
            <text text="استعلام سند جهت بررسی ارسال گردید، ‌لطفا منتظر بمانید. " margin_top="16"
                  textalignment="center" textsize="12" textcolor="#424750"
                  gravity="center" selfgravity="center" layoutgravity="center"
            />
        </frame>

        <frame layout="linear_vertical" margin="0" margin_top="4">
            <divider color="#c1c7c3" margin="0" padding="0" />
            <text text="لغو" textcolor="#0164BC" textsize="14" padding="8"
                  textalignment="center" gravity="center" onclick="app/closedialog"/>
        </frame>

        <snackbar textSize="12" text="دریافت اطلاعات با خطا مواجه شد، دقایقی دیگر مجددا تلاش نمایید." duration="long" location="bottom" textColor="FF5733" id="errorSnakeBar">

    </frame>

</dialog>

تصدیق اصالت سند

صفحه دوم (نتیجه سند)

نمای مینی اپ به صورت زیر خواهد بود

image-1699433114520.png

image-1699433468931.png

 

image-1699433507021.png

کد

<page id="result-page" title="تصدیق اصالت سند" layout="linear_vertical"
      background="#FFFFFF" scrollable="true" padding="16" onshown="script/main:init()">

    <include layout="pages/result/result.js.appsan" />

    <frame layout="linear_vertical" margin_left="16" margin_right="12"
           borderCornerRadius="4" background="transparent">

        <frame layout="linear_vertical" margin="0" padding="0">
            <img src="images/vekalat.png" height="150" width="328" scaleType="fit_center"/>

            <text id="DocType" text="" textsize="12" textalignment="right" margin_top="16"
                  textcolor="#424750" textstyle="bold" />

            <frame layout="linear_horizontal" reverse="true" gravity="right" childgravity="center_vertical"
                   layoutgravity="center_vertical" margin="0" padding="0">

                <text text="شناسه سند" textsize="11" textcolor="#424750" width="wrap_content"/>

                <image src="images/dot.png" width="5" height="match_parent" scaleType="fit_center"
                     gravity="center_vertical" layoutgravity="center_vertical" margin="8"
                     selfgravity="center_vertical" childgravity="center_vertical"/>

                <text id="NationalRegisterNo" text="۱۳۹۵۹۳۲۵۱۱۰۰۰۰۳۹" textsize="11" textcolor="#424750" width="wrap_content"/>
            </frame>

        </frame>


        <frame layout="linear_horizontal" reverse="true" height="wrap_content"
               width="wrap_content" margin_top="16"
               margin="0" padding="0" childgravity="bottom" gravity="bottom">

            <frame layout="linear_vertical" margin="0" padding="0" padding_bottom="0">

                <text gravity="center" textalignment="center" height="wrap_content"
                      textsize="12" id="menu-btn-1" textcolor="#0164BC"
                      elevation="0" text="مشخصات سند" onclick="script/main:changeColor('menu-btn-1')"
                      textstyle="normal" />

                <img id="menu-img-1" src="images/indicator.png" margin="0" padding="0"/>

            </frame>

            <frame layout="linear_vertical" margin="0" padding="0"
                   padding_bottom="0" width="wrap_content">

                <text gravity="center" textalignment="center" height="wrap_content"
                      width="wrap_content"
                      textsize="12" id="menu-btn-2" textcolor="#43474E"
                      elevation="0" text="افراد" onclick="script/main:changeColor('menu-btn-2')"
                      textstyle="normal" />

                <img id="menu-img-2" src="images/indicator.png" margin="0" padding="0"
                     visibility="invisible" width="wrap_content"/>

            </frame>

            <frame layout="linear_vertical" margin="0" padding="0" padding_bottom="0">

                <text gravity="center" textalignment="center" height="wrap_content"
                      textsize="12" id="menu-btn-3" textcolor="#43474E"
                      elevation="0" text="جزییات سند" onclick="script/main:changeColor('menu-btn-3')"
                      textstyle="normal" />

                <img id="menu-img-3" src="images/indicator.png" margin="0"
                     padding="0" visibility="invisible"/>

            </frame>
        </frame>
        <divider size="1" color="#E6E0E9" margin="0" padding="0"/>

        <frame id="menu-frame-1" layout="linear_vertical" visibility="visibile"
               width="match_parent" height="wrap_content"
               margin="0" padding="0" margin_top="24" gravity="right">

            <frame layout="linear_horizontal" reverse="true" margin="0"
                   padding="0" margin_bottom="16" weightsum="1"
                   childgravity="right" gravity="center_right">

                <text text="دفترخانه تنظیم‌کننده" textsize="10" textalignment="right"
                      selfgravity="center_right" layoutgravity="center_right"
                      textstyle="normal" textcolor="#424750" padding="0"
                      margin_left="4" gravity="center_right"
                      width="wrap_content" margin="0"
                />

                <text id="ScriptoriumName" text=""
                      width="wrap_content" textalignment="right" weight="1"
                      textcolor="#424750" textstyle="bold" margin_right="4"
                      padding="0" gravity="right" margin="0"
                      textsize="10" />
            </frame>

            <divider color="#F0F0F1" margin="0" size="1" />



            <frame layout="linear_horizontal" reverse="true" margin="0"
                   padding="0" margin_top="16" margin_bottom="16" weightsum="1"
                   childgravity="right" gravity="center_right">

                <text text="شناسه یکتا" textsize="10" textalignment="right"
                      selfgravity="center_right" layoutgravity="center_right"
                      textstyle="normal" textcolor="#424750" padding="0" margin_left="4" gravity="center_right"
                      width="wrap_content" margin="0"
                />

                <text id="NationalRegisterNo2" text="" width="wrap_content" textalignment="right"
                      textcolor="#424750" textstyle="bold" margin_right="4" weight="1"
                      padding="0" gravity="right" margin="0"
                      textsize="10" />
            </frame>

            <divider color="#F0F0F1" margin="0" size="1" />


            <frame layout="linear_horizontal" reverse="true" margin="0"
                   padding="0" margin_top="16" margin_bottom="16" weightsum="1"
                   childgravity="right" gravity="center_right">

                <text text="شماره ثبت دفتر" textsize="10" textalignment="right"
                      selfgravity="center_right" layoutgravity="center_right"
                      textstyle="normal" textcolor="#424750" padding="0" margin_left="4"
                      gravity="center_right"
                      width="wrap_content" margin="0"
                />

                <text id="CaseClasifyNo" text="" width="wrap_content" textalignment="right"
                      textcolor="#424750" textstyle="bold" margin_right="4" weight="1"
                      padding="0" gravity="right" margin="0"
                      textsize="10" />
            </frame>

            <divider color="#F0F0F1" margin="0" size="1" />


            <frame layout="linear_horizontal" reverse="true" margin="0"
                   padding="0" margin_top="16" margin_bottom="16" weightsum="1"
                   childgravity="right" gravity="center_right">

                <text text="تاریخ سند" textsize="10" textalignment="right"
                      selfgravity="center_right" layoutgravity="center_right"
                      textstyle="normal" textcolor="#424750" padding="0" margin_left="4" gravity="center_right"
                      width="wrap_content" margin="0"
                />

                <text id="DocDate" text="" width="wrap_content" textalignment="right"
                      textcolor="#424750" textstyle="bold" margin_right="4"
                      padding="0" gravity="right" margin="0" weight="1"
                      textsize="10" />
            </frame>
        </frame>



        <frame id="menu-frame-2" layout="linear_vertical" visibility="gone"
               width="match_parent" height="wrap_content"
               margin="0" padding="0" margin_top="24" gravity="right">


        </frame>



        <!-- frame 3-->
        <frame layout="linear_vertical" id="menu-frame-3" visibility="gone" margin="0"
               padding="0">

            <frame layout="linear_vertical" margin="0" padding="0" gravity="right" margin_bottom="16">

                <text text="متن سند" textcolor="#424750" textsize="12" textstyle="bold" margin="0"
                      padding="0" margin_top="16" />

                <text id="ImpotrtantAnnexText" textcolor="#424750" textsize="11" textstyle="normal"
                      margin="0" padding="0" margin_top="16"
                    text="" />

                <frame id="more-btn" layout="linear_horizontal" reverse="true"
                       weightsum="1" margin="0" padding="0"
                       margin_top="16" onclick="script/main:showMore()"
                       width="wrap_content" gravity="right" selfgravity="right" >

                    <text text="مشاهده بیشتر" textcolor="#0164BC" textsize="12"
                          weight="1" margin="0" margin_left="8" />
                    <image src="images/chevron.png" height="24" width="24"
                           scaleType="fit_center" margin="0" />

                </frame>
            </frame>


            <!-- commented  -->

            <divider size="1" color="#E6E0E9" margin="0" padding="0" visibility="gone"/>


            <frame id="doc_errors" layout="linear_vertical" margin="0" padding="0" visibility="gone">
                <frame layout="linear_horizontal" reverse="true" weightsum="1" margin="0"
                       padding="0" margin_top="16">
                    <image src="images/detail.png" height="24" width="24" scaleType="fit_center"
                           margin="0" padding="0" margin_left="10"/>

                    <text weight="1" textsize="11" margin_right="0" padding="0"
                          textcolor="#424750" text="این وکالت نامه بلاعزل نیست" />
                </frame>

                <frame layout="linear_horizontal" reverse="true" weightsum="1" margin="0"
                       padding="0" margin_top="16">
                    <image src="images/detail.png" height="24" width="24" scaleType="fit_center"
                           margin="0" padding="0" margin_left="10"/>

                    <text weight="1" textsize="11" margin_right="0" padding="0"
                          textcolor="#424750" text="این وکالت نامه بلاعزل نیست" />
                </frame>

                <frame layout="linear_horizontal" reverse="true" weightsum="1" margin="0"
                       padding="0" margin_top="16">
                    <image src="images/detail.png" height="24" width="24" scaleType="fit_center"
                           margin="0" padding="0" margin_left="10"/>

                    <text weight="1" textsize="11" margin_right="0" padding="0"
                          textcolor="#424750" text="این وکالت نامه بلاعزل نیست" />
                </frame>
            </frame>
        </frame>
    </frame>
</page>



<include layout="pages/main/dialogs/waiting.xml.appsan" />

 

 

<script id="main">
    const data = JSON.parse(Appsan.getVariable('response').value);
    function init() {

        Appsan.setProperty('DocType', 'text', numberToPersian(data.DocType));
        Appsan.setProperty('NationalRegisterNo', 'text', numberToPersian(data.NationalRegisterNo));
        Appsan.setProperty('ScriptoriumName', 'text', numberToPersian(data.ScriptoriumName));
        Appsan.setProperty('NationalRegisterNo2', 'text', numberToPersian(data.NationalRegisterNo));
        Appsan.setProperty('CaseClasifyNo', 'text', numberToPersian(data.CaseClasifyNo));
        Appsan.setProperty('DocDate', 'text', numberToPersian(data.DocDate));
        Appsan.setProperty('ImpotrtantAnnexText', 'text', numberToPersian(data.ImpotrtantAnnexText.substring(0, 300)));

        let personsFrame = ``;
        for (let role of data.lstUserRoles){
            let group = `<frame layout="linear_vertical" margin="0" padding="0">`
            for (const person of data.lstFindPersonInQuery[role]) {
                let frame = `
                <frame layout="linear_horizontal" reverse="true" weightsum="1"
                   margin="0" padding="0"
                   margin_bottom="22">

                <frame layout="linear_vertical" width="wrap_content" height="match_parent"
                       margin="0" padding="0" gravity="top">

                    <image src="images/user-image.png" height="32"
                           width="32" margin="0" padding="0"
                           scaleType="fit_center"
                    />
                </frame>

                <frame layout="linear_vertical" weight="1" margin_right="16" margin="0"
                       margin_top="4" height="wrap_content" layoutgravity="right" gravity="right">

                    <frame layout="linear_horizontal" reverse="true" margin="0" padding="0"
                           margin_bottom="16" height="wrap_content"
                           childgravity="right" gravity="center_right">

                        <text text="نام و نام خانوادگی ${person.RoleType}" textsize="10"
                              textalignment="right" height="wrap_content"
                              selfgravity="center_right" layoutgravity="center_right"
                              textstyle="normal" textcolor="#424750" padding="0"
                              margin_left="4" gravity="center_right"
                              width="wrap_content" margin="0"
                        />

                        <text text="${person.Name} ${person.Family}" width="wrap_content" textalignment="right"
                              textcolor="#424750" textstyle="bold" margin_right="4"
                              padding="0" gravity="right" margin="0"
                              textsize="10" />
                    </frame>

                    <frame layout="linear_horizontal" reverse="true" margin="0" padding="0"
                           margin_bottom="16" weight="1" layoutgravity="right"
                           childgravity="right" gravity="center_right">

                        <text text="کد ملی ${person.RoleType}" textsize="10" textalignment="right"
                              selfgravity="center_right" layoutgravity="center_right"
                              textstyle="normal" textcolor="#424750" padding="0" margin_left="4"
                              gravity="center_right"
                              width="wrap_content" margin="0"
                        />

                        <text text="${numberToPersian(person.NationalNo)}" width="wrap_content" textalignment="right"
                              textcolor="#424750" textstyle="bold" margin_right="4"
                              padding="0" gravity="right" margin="0"
                              textsize="10" />
                    </frame>
                </frame>

            </frame>
                `

                group += frame;
            }
            group += `</frame>`
            personsFrame += group;
            personsFrame += `<divider color="#F0F0F1" margin="0" size="1" />`
        }

        Appsan.setProperty('menu-frame-2', 'innerElements', personsFrame);
    }

    function numberToPersian(number) {
        let persianDigits = "۰۱۲۳۴۵۶۷۸۹";
        let persianMap = persianDigits.split("");
        let persianNumbers = number.replace(/\d/g, function (m) {
            return persianMap[parseInt(m)];
        });
        return persianNumbers;
    }


    function showMore() {
        Appsan.setProperty('ImpotrtantAnnexText', 'text', numberToPersian(data.ImpotrtantAnnexText));
        Appsan.setProperty('more-btn', 'visibility', 'gone');
    }
    function changeColor(id) {
        const buttons = ['menu-btn-1', 'menu-btn-2', 'menu-btn-3'];
        const images = ['menu-img-1', 'menu-img-2', 'menu-img-3'];
        const frames = ['menu-frame-1', 'menu-frame-2', 'menu-frame-3'];


        for (let i=0; i < buttons.length; i++) {
            let btn_id = buttons[i];
            let img_id = images[i];
            let frame_id = frames[i];

            if (btn_id === id) {
                Appsan.setProperty(btn_id, 'textcolor', '#0164BC');
                Appsan.setProperty(btn_id, 'textstyle', 'bold');
                Appsan.setProperty(img_id, 'visibility', 'visible');
                Appsan.setProperty(frame_id, 'visibility', 'visible');

            } else {
                Appsan.setProperty(btn_id, 'textcolor', '#43474E');
                Appsan.setProperty(btn_id, 'textstyle', 'normal');
                Appsan.setProperty(img_id, 'visibility', 'invisible')
                Appsan.setProperty(frame_id, 'visibility', 'gone');
            }
        }
    }

    function closeElem(id){
        Appsan.setProperty(id, 'visibility', 'gone');
    }

</script>
تصدیق اصالت سند

صفحه دوم (پیدا نشد)

 

نمای مینی اپ به صورت زیر است

image-1699433662112.png

کد

<page id="result-not-found" title="تصدیق اصالت سند" layout="linear_vertical"
      scrollable="false">

    <frame layout="linear_vertical" margin="0" padding="0"
           gravity="center" layoutgravity="center" >

        <image src="images/search.png" width="128" height="128"
               scaleType="fit_center" gravity="center" />

        <text gravity="center" textalignment="center"
              text="سند مورد نظر در این سامانه یافت نشد"
              textsize="14" textcolor="#424750"
              textstyle="bold" margin_top="10"  />


        <frame padding_left="16" padding_right="16" padding_top="8" padding_bottom="8" margin_top="24"
               borderCornerRadius="4" borderColor="#0164BC" borderStrokeWidth="1" background="white"
               onclick="page/main-page" width="wrap_content" height="wrap_content" gravity="center">
            <text textstyle="normal" text="بازگشت به صفحه اصلی" textcolor="#0164BC" textsize="14" />
        </frame>


    </frame>

</page>

تعیین نام هوشمند

تعیین نام هوشمند

صفحه ی اول

 

نمای مینی اپ به صورت زیر میباشد

image-1699360200496.png

image-1699540373454.png

image-1699540379089.png

 

 

کدها

<page title="تعیین نام هوشمند" height="match_parent" padding="16"
      width="match_parent" layout="linear_vertical" scrollable="true">

    <include layout="pages/baresi-nam/barresi.js.appsan" />

    <frame layout="linear_vertical" gravity="center_vertical" padding="0" margin="0"
           height="wrap_content" width="match_parent">

        <frame layout="linear_horizontal" weightsum="1" background="#D5E3FF" id="header_message"
               visibility="gone" margin="0" padding="0"
               padding_top="8" padding_bottom="8"
               reverse="true" layoutgravity="top"
               borderCornerRadius="4" >

            <img id="header_img" src="images/warning.png" width="24" height="24"
                 scaleType="fit_center" margin_top="10" margin_right="16"  margin_bottom="10" />
            <text id="header_text" weight="1" textsize="14" textcolor="#0164BC" textstyle="normal" gravity="top"
                  height="match_parent"
                  text="" />
        </frame>


        <frame layout="linear_vertical" margin="0" padding="0">
            <text id="title" text="تعیین نام شرکت" textalignment="right"
                  gravity="center" textsize="16" textcolor="#424750" textstyle="bold"/>

            <img src="images/logo.png" margin_top="16"
                 width="91" height="91" scaleType="fit_center"/>
        </frame>


        <frame layout="linear_vertical" margin="0" padding="0" margin_top="24">
            <material-textinput id="namewrapper" expandHint="true" rtl="true" borderColor="#E0E0E2"
                                endiconmode="custom"
                                hint="نام شرکت" borderCornerRadius="4" textcolor="#43474E"  defaulthintcolor="#81858B"
                                hideArrow="true" margin="0">

                <textinput id="company_name" hintsize="11" hintcolor="#424750" textsize="11" textcolor="#43474E"
                           padding_top="16" padding_bottom="16" padding_right="12" borderCornerRadius="4"
                           hintcolor="#81858B"
                           padding_left="12" onfocus="script/checkNameAction:changeHint()"
                           onfocuslost="script/checkNameAction:changeHint()"
                           onChange="script/checkNameAction:check_empty_field()"/>

            </material-textinput>
            <text margin_right="10" text="راهنمای قوانین تعیین نام شرکت" margin_top="12"
                  onclick=""
                  textcolor="#0164BC" textsize="12" margin_bottom="8" />
        </frame>

        <frame layout="linear_horizontal" weightsum="2" margin="0" padding="0" margin_top="24" id="btn_frame">
            <frame background="#92C0E2" weight="1" margin="0" padding="0" id="btn_id"
                   onclick="script/checkNameAction:check_name()"
                   borderCornerRadius="8" padding_top="4" padding_bottom="4">
                <text textsize="14" text="بررسی" textcolor="#FFFFFF" textalignment="center"/>
            </frame>

            <frame background="#0164BC" weight="1" visibility="invisible"
                   margin="0" padding="0" focusable="false" clickable="false">
                <text textsize="" text="بررسی" textcolor="#0164BC" />
            </frame>
        </frame>


        <frame id="result" layout="linear_vertical">

        </frame>

        <progressbar id="progress-bar" color="#0164BC" layout="circular" margin_top="52" visibility="gone" />


        <snackbar textSize="12" text="دریافت اطلاعات با خطا مواجه شد، دقایقی دیگر مجددا تلاش نمایید." duration="long" location="bottom" textColor="FF5733" id="errorSnakeBar">


    </frame>
</page>

 

<script id="checkNameAction">
    let hintFocused = true;
    let resultMode = false;


    function resetEveryThing() {
        Appsan.setProperty('header_message', 'visibility', 'gone');
        Appsan.setProperty('namewrapper', 'showendicon', 'false');
        Appsan.setProperty('title', 'visibility', 'visible');
        Appsan.setProperty('btn_frame', 'visibility', 'visible');
        Appsan.setProperty('result', 'visibility', 'gone');
    }

    function changeResultMode() {
        if (resultMode) {
            resetEveryThing();
            resultMode = false;
        }
    }

    function changeHint() {
        if (hintFocused)
            Appsan.setProperty('namewrapper', 'hint', 'درج نام شرکت');
        else
            Appsan.setProperty('namewrapper', 'hint', 'نام شرکت');

        hintFocused = !hintFocused;
    }


    function show_header_message(id='header_message', status='error') {
        let property = {
            success: {
                text: 'نام شرکت مورد تایید است',
                textcolor: '#0164BC',
                img: 'images/warning.png',
                background: '#D5E3FF',
                imageicon: 'images/tickicon.png',
                endicontint: "#41A447"
            },
            error: {
                text: 'نام شرکت باید اصلاح شود',
                textcolor: '#FF6666',
                img: 'images/erroricon.png',
                background: '#FFE5E5',
                imageicon: 'images/crossicon.png',
                endicontint: "#FF6666"

            }
        }


        Appsan.setProperty('header_text', 'text',property[status]['text']);
        Appsan.setProperty('header_img', 'src',property[status]['img']);
        Appsan.setProperty('header_message', 'background',property[status]['background']);
        Appsan.setProperty('header_text', 'textcolor',property[status]['textcolor']);
        Appsan.setProperty('namewrapper', 'endicon', property[status]['imageicon']);
        Appsan.setProperty('namewrapper', 'endicontint', property[status]['endicontint']);
        Appsan.setProperty('namewrapper', 'showendicon', 'true');
        Appsan.setProperty('header_message', 'visibility', 'visible');
    }

    function check_empty_field(id='company_name', btn='btn_id') {
        changeResultMode();
        if (Appsan.findElementById(id).value.length >= 1) {
            Appsan.setProperty(btn, 'background', '#0164BC');
            Appsan.setProperty(btn, 'clickable', 'true');
            Appsan.setProperty(btn, 'focusable', 'true');
            return true;
        } else {
            Appsan.setProperty(btn, 'background', '#92C0E2');
            Appsan.setProperty(btn, 'clickable', 'false');
            Appsan.setProperty(btn, 'focusable', 'false');
            return false;
        }
    }



    function check_name(){
        if (!check_empty_field())
            return;

        Appsan.setProperty('title', 'visibility', 'gone');
        Appsan.setProperty('btn_frame', 'visibility', 'gone');
        Appsan.setProperty('result', 'visibility', 'gone');
        Appsan.setProperty('header_message', 'visibility', 'gone');

        Appsan.setProperty('progress-bar', 'visibility', 'visible');

        name = Appsan.findElementById('company_name').value;
            HTTPClient.get(`http://5.253.24.175:8001/api/v1/company/check/${name}`, {
                headers: {
                    'Content-Type': 'application/json; charset=utf-8',
                    "Authorization":"Bearer eyJhbGciOiJIUzUxMiJ9.eyJtaW5pQXBwTmFtZSI6ImFwcDphZG1pbjp0YWVpbi1uYW0taG9vc2htYW5kIiwidXNlcm5hbWUiOiIxMTExMTExMTExIiwic3ViIjoibWluaUFwcCIsImlhdCI6MTY5OTA0Mjk2NSwiZXhwIjoxNjk5OTA2OTY1fQ.Xej8W2H8KMnANzgBVYia4YbKqVV7QzrYwz7oKongEnDsTsruL3D7-VwSdOZWKx4TDzzkYf0rBroRHWZX8bdpbA",
                }
            }).subscribe(response => {
                Appsan.setProperty('progress-bar', 'visibility', 'gone');

                if (response['result'] === 'accept') {
                    show_header_message('header_message', 'success');
                    resultMode = true;

                } else if (response['result'] === 'reject' || response['result'] === 'warning'){
                    let reasons_template = ``;
                    for (let reason of response['reasons']){
                        reasons_template +=
                            `
                    <frame layout="linear_horizontal" reverse="true" weightsum="1" margin="0" padding="0"
                    layoutgravity="center_horizantal" gravity="center" >
                        <text renderas="markdown" weight="1" textcolor="#FF6666" textsize="10" margin="0" padding="0"
                        text="* ${reason['desc']}" textalignment="center_vertical" />
                    </frame>
                     `;
                    }

                    let errorMessage = (response['result'] === 'reject') ?
                        'نام انتخابی به دلایل ذیل قابل قبول نیست:' :
                        'نام انتخابی به دلایل ذیل ممکن است رد شود:'

                    let reject =
                        `<frame id="title" layout="linear_vertical" margin="0" padding="0" reverse="true">
                       <text textcolor="#000000" textsize="12" text="${errorMessage}" margin="0"
                       padding="0" margin_bottom="12" margin_top="4" />
                 </frame>` + reasons_template

                    Appsan.setProperty('result', 'innerElements', reject);
                    Appsan.setProperty('result', 'visibility', 'visible');
                    show_header_message('header_message', 'error');
                    resultMode = true;

                } else {
                    Appsan.setProperty('progress-bar', 'visibility', 'gone');
                    // Appsan.runAction('snackbar/errorSnakeBar');
                    resultMode = true;
                }
            }, err => {
                Appsan.setProperty('progress-bar', 'visibility', 'gone');
                // Appsan.runAction('snackbar/errorSnakeBar');
                resultMode = true;
            });
    }

</script>

 

 

 

 

اسناد رسمی من

اسناد رسمی من

صفحه اول

نمای مینی اپ به صورت زیر است

image-1699452098551.png

image-1699541802568.png

image-1699541895500.png

 

کد

 

<page id="asnad-man">

    <script id="main">
        function changeColor(id) {
            const buttons = ['asnadman', 'asnadother', 'sharelist']
            for (const btn_id of buttons) {
                if (btn_id === id) {

                    Appsan.setProperty(btn_id, 'textcolor', '#55BECC');
                    Appsan.setProperty(btn_id, 'background', '#EAFCFE');
                } else {
                    Appsan.setProperty(btn_id, 'textcolor', '#616161');
                    Appsan.setProperty(btn_id, 'background', 'white');
                }
            }
            if (id === buttons[0]) {
                Appsan.setProperty('asnade-man', 'visibility', 'visible');
                Appsan.setProperty('other', 'visibility', 'gone');
                Appsan.setProperty('list', 'visibility', 'gone');

            } else if (id === buttons[1]) {
                Appsan.setProperty('asnade-man', 'visibility', 'gone');
                Appsan.setProperty('other', 'visibility', 'visible');
                Appsan.setProperty('list', 'visibility', 'gone');

            } else {
                Appsan.setProperty('asnade-man', 'visibility', 'gone');
                Appsan.setProperty('other', 'visibility', 'gone');
                Appsan.setProperty('list', 'visibility', 'visible');
            }
        }

        function closeElem(id){
            Appsan.setProperty(id, 'visibility', 'gone');
        }

    </script>

    <frame weightsum="2" layout="linear_vertical" gravity="center"  margin="16" width="match_parent"
           background="white" elevation="2" borderCornerRadius="2">
        <frame weight="1" layout="linear_horizontal" gravity="center" reverse="true" margin_right="16" margin_top="16" margin_left="10">
            <img width="40" height="40" scaleType="fit_center" src="images/asnad.png"/>
            <text width="wrap_content" textsize="16" weight="1" textcolor="#1C4B78" padding_bottom="4"  textalignment="right" text="اسناد من"/>
            <img width="24" height="24" margin_left="16" scaleType="fit_center" src="images/alert-circle.png"/>
        </frame>

        <frame layout="linear_vertical" reverse="true" weight="1" margin="16">
            <frame layout="linear_horizontal" reverse="true" gravity="right" background="#FAFAFA" borderCornerRadius="3"   padding="10" >
                <img width="24" height="24" src="images/search.png"  scaleType="fit_center"   padding_top="16"/>
                <textinput hint="جستجو..." textcolor="#ADADAD" textalignment="right" textsize="11" background="transparent"
                      width="wrap_content"/>
            </frame>
        </frame>
    </frame>

    <frame layout="linear_horizontal" background="white" borderCornerRadius="8" padding="8" reverse="true" height="wrap_content" width="wrap_content">
        <text gravity="center" textalignment="center" height="wrap_content" padding="8" textsize="12" id="asnadman" borderCornerRadius="4" textcolor="#55BECC" elevation="0" background="#EAFCFE" text="اسناد من" onclick="script/main:changeColor('asnadman')" />
        <text gravity="center" textalignment="center" height="wrap_content" padding="8" textsize="12" textcolor="#616161" id="asnadother" borderCornerRadius="4" elevation="0" background="white" text="اسناد سایرین" onclick="script/main:changeColor('asnadother')" />
        <text gravity="center" textalignment="center" height="wrap_content" padding="8" textsize="12" textcolor="#616161" id="sharelist" borderCornerRadius="4" elevation="0" background="white" text="لیست اشترک ها" onclick="script/main:changeColor('sharelist')" />
    </frame>

    <frame layout="linear_horizontal" id="alert-message" width="match_parent" height="64" margin_top="12" background="#EBF8FF" reverse="true" gravity="center"  borderStrokeWidth="1"
           margin_left="16" margin_right="16" borderColor="#C6E7F8" borderCornerRadius="4" weightsum="1">
        <text gravity="right" textalignment="right" text="کاربر گرامی! در نظر داشته باشید اسناد نمایش داده شده مربوط به سال ۱۳۹۲  و پس از آن می باشد."  weight="1" width="match_parent"
            padding_right="10"  textcolor="#7A7A7A" textsize="12"/>
        <img width="20" height="20" margin_left="16" gravity="left" scaleType="fit_center" src="images/x-circle.png" onclick="script/main:closeElem('alert-message')"/>
    </frame>


    <frame layout="linear_vertical" id="asnade-man" visibility="visible" borderStrokeWidth="1" borderColor="#E0E0E0" weightsum="6"  margin_top="20"
           margin_right="16" margin_left="16" borderCornerRadius="6" padding="16">
        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="شماره پرونده"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="۱۳۹۵۴۰۱۵۱۱۲۱۰۰۱۲۷۷"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="نوع سند"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="رضایت نامه غیر مالی"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>


        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="تاریخ سند"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="۱۳۹۶/۰۹/۲۰"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                  weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="#2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                  margin_right="16"    text="ثبت نهایی"/>
            </frame>

            <imagebutton src="images/check.png"  width="45" height="45"  scaletype="fit_center" gravity="left"/>

        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>


        <frame layout="linear_horizontal" reverse="true"  margin_top="10" margin_bottom="10" padding_right="10" padding_left="10"
               height="wrap_content" width="match_parent" weightsum="1">

            <text textsize="13" textalignment="right" gravity="right" textcolor="#2E2E2E" text="عملیات" height="wrap_content" width="wrap_content"
            />
            <frame layout="linear_horizontal" reverse="true" height="wrap_content" weight="1" gravity="left" width="wrap_content" childgravity="left" margin="0" padding="0">

                    <img margin_top="7"  scaleType="fit_center" height="35" width="35" padding="8" src="images/share.png" gravity="center" onclick="dialog/dialog-eshterak" />

                <frame layout="linear_horizontal" borderStrokeWidth="0.5" borderColor="#55BECC" borderCornerRadius="3"
                       height="wrap_content" width="wrap_content" reverse="true" padding="7" onclick="">
                    <img padding="0" margin="0" margin_left="8" scaleType="fit_center" width="23" height="23" src="images/printer.png" gravity="center" />
                    <text padding="0" margin="0" textalignment="center_vertical" textcolor="#55BECC" textsize="9" text="دریافت سند" height="wrap_content" width="60"/>
                </frame>
            </frame>
        </frame>


        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

        <frame layout="linear_horizontal" reverse="true" weight="1" width="wrap_content">

            <imagebutton src="images/details.png" width="150" height="70" scaletype="fit_center" gravity="right" onclick="page/details"/>
            <imagebutton src="images/tozihat.png" width="150" height="70" scaletype="fit_center" gravity="left" onclick="dialog/dialog-tozihat"/>

        </frame>
        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>
        <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right"
              text=""/>
    </frame>


    <frame id = "other" visibility="gone" layout="linear_vertical"  borderStrokeWidth="1" borderColor="#E0E0E0" weightsum="6"  margin_top="20"
           margin_right="16" margin_left="16" borderCornerRadius="6" padding="16">

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="شماره پرونده"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="۱۳۹۵۴۰۱۵۱۱۲۱۰۰۱۲۷۷"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="نوع سند"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="رضایت نامه غیر مالی"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>


        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="تاریخ سند"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="۱۳۹۶/۰۹/۲۰"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="مدت زمان باقی مانده اشتراک"/>
            </frame>
           <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                  background="white">
               <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                     text="۵ روز ۱۲ ساعت"/>
           </frame>

        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>
        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      margin_right="16"  text="ثبت نهایی"/>
            </frame>

            <imagebutton src="images/check.png"  width="45" height="45"  scaletype="fit_center" gravity="left"/>

        </frame>
        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>
        <frame layout="linear_horizontal" reverse="true"  margin_top="10" margin_bottom="10" padding_right="10" padding_left="10"
               height="wrap_content" width="match_parent" weightsum="1">

            <text textsize="13" textalignment="right" gravity="right" textcolor="#2E2E2E" text="عملیات" height="wrap_content" width="wrap_content"
            />
            <frame layout="linear_horizontal" reverse="true" height="wrap_content" weight="1" gravity="left" width="wrap_content" childgravity="left" margin="0" padding="0">

                <frame layout="linear_horizontal" borderStrokeWidth="0.5" borderColor="#55BECC" borderCornerRadius="3"
                       height="wrap_content" width="wrap_content" reverse="true" padding="7" onclick="">
                    <img padding="0" margin="0" margin_left="8" scaleType="fit_center" width="23" height="23" src="images/printer.png" gravity="center" />
                    <text padding="0" margin="0" textalignment="center_vertical" textcolor="#55BECC" textsize="9" text="دریافت سند" height="wrap_content" width="60"/>
                </frame>
            </frame>
        </frame>
        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

    </frame>

    <frame id = "list" visibility="gone" layout="linear_vertical"  borderStrokeWidth="1" borderColor="#E0E0E0" weightsum="6"  margin_top="20"
           margin_right="16" margin_left="16" borderCornerRadius="6" padding="16">

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="شماره پرونده"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="۱۳۹۵۴۰۱۵۱۱۲۱۰۰۱۲۷۷"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="نوع سند"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="رضایت نامه غیر مالی"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>


        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="تاریخ سند"/>
            </frame>
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right"  padding_top="10" padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="۱۳۹۶/۰۹/۲۰"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

        <frame layout="linear_horizontal" weight="1" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_horizontal" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      text="مدت زمان باقی مانده اشتراک"/>
            </frame>
            <frame layout="linear_horizontal" height="50" weight="1" gravity="right" childgravity="right"   padding_bottom="10" reverse="true"
                   background="white">
                <text textsize="12" textcolor="#616161" textalignment="left" gravity="left"
                      text="۵ روز ۱۲ ساعت"/>
                <img src="images/laghv.png" padding="0" width="32" height="32" scaleType="fit_center" gravity="left"/>
            </frame>

        </frame>

        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>
        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               padding_right="10" padding_left="10" >
            <frame layout="linear_vertical" height="50" weight="1" gravity="right" childgravity="right" padding_top="10" padding_bottom="10"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="##2E2E2E" textalignment="right"  gravity="right" textstyle="bold"
                      margin_right="16"  text="ثبت نهایی"/>
            </frame>

            <imagebutton src="images/check.png"  width="45" height="45"  scaletype="fit_center" gravity="left"/>

        </frame>
        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>


        <frame layout="linear_horizontal" reverse="true"  margin_top="10" margin_bottom="10" padding_right="10" padding_left="10"
               height="wrap_content" width="match_parent" weightsum="1">

            <text textsize="13" textalignment="right" gravity="right" textcolor="#2E2E2E" text="عملیات" height="wrap_content" width="wrap_content"
            />
            <frame layout="linear_horizontal" reverse="true" height="wrap_content" weight="1" gravity="left" width="wrap_content" childgravity="left" margin="0" padding="0">

                <frame layout="linear_horizontal" borderStrokeWidth="0.5" borderColor="#55BECC" borderCornerRadius="3"
                       height="wrap_content" width="wrap_content" reverse="true" padding="7" onclick="">
                    <img padding="0" margin="0" margin_left="8" scaleType="fit_center" width="23" height="23" src="images/printer.png" gravity="center" />
                    <text padding="0" margin="0" textalignment="center_vertical" textcolor="#55BECC" textsize="9" text="دریافت سند" height="wrap_content" width="60"/>
                </frame>
            </frame>
        </frame>


        <frame margin_right="16" margin_left="16"><divider color = "#E0E0E0" size = "1" ></divider></frame>

    </frame>

</page>
<page id="asnad-man-not">
    <frame weightsum="2" layout="linear_vertical" gravity="center"  margin="16" width="match_parent"
           background="white" elevation="2" borderCornerRadius="2">
        <frame weight="1" layout="linear_horizontal" gravity="center" reverse="true" margin_right="16" margin_top="16" margin_left="10">
            <img width="40" height="40" scaleType="fit_center" src="images/asnad.png"/>
            <text width="wrap_content" textsize="16" weight="1" textcolor="#1C4B78" padding_bottom="4"  textalignment="right" text="اسناد من"/>
            <img width="24" height="24" margin_left="16" scaleType="fit_center" src="images/alert-circle.png"/>
        </frame>

        <frame layout="linear_vertical" reverse="true" weight="1" margin="16">
            <frame layout="linear_horizontal" reverse="true" gravity="right" background="#FAFAFA" borderCornerRadius="3"   padding="10" >
                <img width="24" height="24" src="images/search.png"  scaleType="fit_center"   padding_top="16"/>
                <textinput hint="جستجو..." textcolor="#ADADAD" textalignment="right" textsize="11" background="transparent"
                           width="wrap_content"/>
            </frame>
        </frame>
    </frame>

<!--    <frame layout="linear_horizontal" weight="1" weightsum="1" reverse="true"-->
<!--           padding_right="10" padding_left="10" >-->

        <frame layout="linear_vertical" height="50"  padding_right="10" weight="1" gravity="right"  padding_top="10" padding_bottom="10"
               weightsum="1" reverse="true"  background="white">
            <text textsize="13" textcolor="#2E2E2E" textalignment="right"  gravity="right"
                  text="فهرست اسناد"/>
        </frame>
<!--    </frame>-->

    <frame layout="linear_horizontal" width="match_parent" height="64" margin_top="12" background="#EBF8FF" reverse="true" gravity="center"  borderStrokeWidth="1"
           margin_left="16" margin_right="16" borderColor="#C6E7F8" borderCornerRadius="4" weightsum="1">
        <text gravity="right" textalignment="right" text="کاربر گرامی! در نظر داشته باشید اسناد نمایش داده شده مربوط به سال ۱۳۹۲  و پس از آن می باشد."  weight="1" width="match_parent"
             padding_right="10" textcolor="#7A7A7A" textsize="12"/>
        <img width="20" height="20" margin_left="16" gravity="left" scaleType="fit_center" src="images/x-circle.png" onclick="app/closeDialog"/>
    </frame>

    <frame  layoutgravity="center" layout="linear_horizontal" width="match_parent" height="100" margin_top="80" gravity="center" childgravity="center">
        <img width="88" height="88" gravity="center" src="images/searchnot.png" scaleType="fit_center" selfgravity="center_horizontal" onclick="app/end"/>

    </frame>
    <text gravity="center" textalignment="center" text="موردی یافت نشد"
          textcolor="#616161" textsize="13"/>
    <imagebutton src="images/bazgasht.png" scaletype="fit_center" margin_top="30" width="wrap_content" onclick="app/end"/>

</page>
اسناد رسمی من

جزئیات سند

نمای مینی اپ به صورت زیر است

image-1699542574434.png

 

image-1699542541868.png

image-1699542714591.png

 

کد

<page id="details">

    <frame layout="linear_vertical" padding="16">
    <frame layout="linear_horizontal" width="match_parent" gravity="right">
        <frame layout="frame" width="wrap_content" height="wrap_content" background="#55BECC"
               borderCornerRadius="2" onclick="page/asnad-man" gravity="center_right">

            <img width="16" height="16" src="images/x.png" scaleType="fit_center" />

        </frame>
    </frame>
    <text text="جزییات سند" gravity="center_right" textcolor="#2E2E2E" margin_bottom="16"
          width="match_parent" textalignment="right" textsize="18" textstyle="bold" />

    <frame layout="linear_vertical" borderStrokeWidth="0.5" borderColor="#E0E0E0"
           borderCornerRadius="4">

        <frame layout="linear_horizontal" weightsum="1" reverse="true" padding="8">
            <text gravity="right" textalignment="right" text="مشخصات مالک" width="wrap_content" weight="1"
                  textcolor="#474747" textsize="14"/>
            <img  width="24" height="24" scaleType="fit_center"
                 src="images/chevron-down.png" />
        </frame>

        <frame layout="linear_vertical"  width="match_parent"
               height="wrap_content" >
            <frame layout="linear_horizontal" reverse="true" height="wrap_content" width="match_parent" weightsum="2" gravity="right">
                <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#616161" textsize="10" text="نام:"/>
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#2E2E2E" textsize="12" text="داور" />
                </frame>

                <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#616161" textsize="10" text="نام خانوادگی:"/>
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#2E2E2E" textsize="12" text="امجدی"/>
                </frame>
            </frame>


            <frame layout="linear_horizontal" reverse="true" height="wrap_content" width="match_parent" weightsum="2" gravity="right">
                <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#616161" textsize="10" text="کد ملی:" />
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#2E2E2E" textsize="12" text="۱۵۰۱۱۴۲۴۲" />
                </frame>

                <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#616161" textsize="10" text="تلفن همراه:" />
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#2E2E2E" textsize="12" text="۰۹۱۴۵۶۴۳۴۹۸" />
                </frame>
            </frame>

            <frame layout="linear_horizontal" reverse="true" height="wrap_content" width="match_parent" weightsum="2" gravity="right">
                <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#616161" textsize="10" text="تاریخ تولد:" />
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#2E2E2E" textsize="12" text="۱۳۹۹/۰۱/۰۱" />
                </frame>

                <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
<!--                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"-->
<!--                          textcolor="#616161" textsize="10" text="تاریخ تولد:" />-->
<!--                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"-->
<!--                          textcolor="#2E2E2E" textsize="12" text="۱۳۹۹/۰۱/۰۱" />-->
                </frame>
            </frame>
        </frame>
    </frame>


    <frame layout="linear_vertical" borderStrokeWidth="0.5" borderColor="#E0E0E0"
               borderCornerRadius="4">
            <frame layout="linear_horizontal" weightsum="1" reverse="true" padding="8">
                <text gravity="right" textalignment="right" text="مشخصات سند" width="wrap_content" weight="1"
                      textcolor="#474747" textsize="14"/>
                <img  width="24" height="24" scaleType="fit_center"
                      src="images/chevron-down.png" />
            </frame>

            <frame layout="linear_vertical"  width="match_parent"
                   height="wrap_content" >
                <frame layout="linear_horizontal" reverse="true" height="wrap_content" width="match_parent" weightsum="2" gravity="right">
                    <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                              textcolor="#616161" textsize="10" text="نوع سند:"/>
                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                              textcolor="#2E2E2E" textsize="12" text="سند رضایت نامه غیر مالی" />
                    </frame>

                    <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                              textcolor="#616161" textsize="10" text="شناسه یکتا:"/>
                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                              textcolor="#2E2E2E" textsize="12" text="۱۳۹۵۹۳۲۵۱۱۲۱۰۰۰۰۳۹"/>
                    </frame>
                </frame>


                <frame layout="linear_horizontal" reverse="true" height="wrap_content" width="match_parent" weightsum="2" gravity="right">
                    <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                              textcolor="#616161" textsize="10" text="تاریخ سند:" />
                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                              textcolor="#2E2E2E" textsize="12" text="۱۳۹۵/۰۹/۲۰" />
                    </frame>

                    <frame layout="linear_vertical" height="match_parent" weight="1" gravity="right">
<!--                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"-->
<!--                              textcolor="#616161" textsize="10" text="تلفن همراه:" />-->
<!--                        <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"-->
<!--                              textcolor="#2E2E2E" textsize="12" text="۰۹۱۴۵۶۴۳۴۹۸" />-->
                    </frame>
                </frame>

                <frame layout="linear_vertical" width="match_parent" gravity="right">
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#616161" textsize="10" text="وضعیت سند:" />

                    <text textsize="12" textstyle="bold" width="wrap_content" textalignment="right" renderas="text" text="سند توسط سر دفتر تایید نهایی شده است"/>

                </frame>
                <frame layout="linear_vertical" width="match_parent" gravity="right">
                    <text height="wrap_content" width="wrap_content" gravity="right" textalignment="right"
                          textcolor="#616161" textsize="10" text="دفترخانه تنظیم کننده:" />
                    <text textsize="12" textstyle="bold" width="wrap_content" textalignment="right" renderas="text" text="دفترخانه  ۱۴۸ شهر  تبریز آذزبایجان شرقی"/>

                </frame>
            </frame>
        </frame>

    </frame>

</page>
<dialog id="dialog-tozihat"
        padding_top="16"
        padding_right="16"
        padding_left="16"
        padding_bottom="24"
        borderCornerRadius="14">


    <frame layout="linear_horizontal" weightsum="1" reverse="true">
        <text gravity="right" textalignment="right" text="توضیحات" width="wrap_content" weight="1" textstyle="bold"
              textcolor="#474747" textsize="15"/>
    </frame>
    <frame layout="linear_horizontal" weight="1" reverse="true" padding_left="16" padding_right="16">
        <frame layout="linear_vertical">
            <text textsize="12" textalignment="right" textcolor="#616161" text="دفتر اسناد رسمی:"/>
            <text textsize="13" textalignment="right" textcolor="#2E2E2E" text="۱۴۸ شهر تبریز استان آذربایجان شرقی" />
        </frame>
    </frame>
     <frame layout="linear_horizontal" weight="1" reverse="true" padding_left="16" padding_right="16">
            <frame layout="linear_vertical">
                <text textsize="12" textalignment="right" textcolor="#616161" text="وضعیت پرونده:"/>
                <text textsize="13" textalignment="right" textcolor="#2E2E2E" text="سند توسط سر دفتر تایید نهایی شده است" />
            </frame>
    </frame>
    <frame>
        <button width="match_parent" margin="10" text="بستن" textsize="12" textcolor="white" height="48" background="#55BECC" borderCornerRadius="4" onclick="app/closedialog">
        </button>
    </frame>

</dialog>

 

 

اسناد رسمی من

دیالوگها

نمای مینی اپ به صوت زیر است

image-1699542976324.png

image-1699542980127.png

image-1699542993577.png

کد


<bottomsheetdialog id="dialog-eshterak" background="white">

    <frame
            layout="linear_vertical"
            background="white"
            padding_top="24"
            padding_right="16"
            padding_left="16"
            padding_bottom="24"
            borderCornerRadius="12" width="match_parent"
    >
        <text
                width="match_parent"
                height="32"
                text="اشتراک اطلاعات سند"
                gravity="center_right"
                textsize="18"
                textcolor="#2E2E2E"
                textalignment="right"
                margin_bottom="16"
                textstyle="bold"
        />

        <frame layout="linear_vertical" borderCornerRadius="8">
            <frame layout="linear_vertical">
                <text text="کد ملی" textcolor="#7A7A7A" textalignment="right" textsize="14" />
                <frame layout="linear_horizontal" background="#FAFAFA">
                    <textinput inputtype="phone" hint="۱۷۲۰۹۸۵۴۳۲" textcolor="#2E2E2E" textalignment="right" background="transparent" textsize="12" padding="8" margin_top="8" margin_bottom="8" />
                </frame>
            </frame>

            <frame layout="linear_vertical">
                <text text="تاریخ پایان اشتراک" textcolor="#7A7A7A" textalignment="right" textsize="14" />
                <frame layout="linear_horizontal" background="#FAFAFA" reverse="true">
                    <textinput inputtype="date" hint="تاریخ پایان اشتراک را وارد کنید" textcolor="#ADADAD" textalignment="right" background="transparent" textsize="12" padding="8" margin_top="8" margin_bottom="8" />
                    <img width="24" height="24" src="images/calendar.png" gravity="center" scaleType="fit_center" />
                </frame>
            </frame>

            <frame>
                <button width="match_parent" margin="10" text="اشتراک" textsize="12" textcolor="white" height="48" background="#55BECC" borderCornerRadius="4" onclick="app/closedialog">
                </button>
            </frame>

        </frame>
    </frame>


</bottomsheetdialog>

تصدیق اصالت سند ازدواج

این مینی اپ شباهت هایی به تصدیق اصالت سند دارد ، پس پیشنهاد میشود به آن مراجعه شود.

تصدیق اصالت سند ازدواج

صفحه اول

نمای مینی اپ به صورت زیر است 

image-1699452411852.png

کد

<page id="page-1" width="match_parent" height="match_parent" title="تصدیق اصالت سند ازدواج">

<include layout="pages/page1.js.appsan"/>
    <frame layout="linear_horizontal" width="wrap_content" height="wrap_content"
    borderCornerRadius="0.7" background="#D5E3FF" margin="15" padding="10" weightsum="1">

        <text textcolor="#0164BC" textsize="14" weight="1"
              text="اسناد ثبت شده از سال ۱۳۹۲ به بعد در سامانه می‌باشد."/>
        <img src="images/Icon.png" width="20"  height="20" scaleType="fit_center"/>
    </frame>

    <frame layout="linear_vertical"   width="match_parent" height="match_parent" margin="10">
        <text  textsize="16" textcolor="#424750" text="تصدیق اصالت سند ازدواج و طلاق"/>
        <img src="images/Group.png" width="52.99"  height="56.8" scaleType="fit_center" margin="20"/>


        <frame layout="linear_vertical" margin="0" weight="1"
               margin_top="16" margin_bottom="32">
<!--            شناسه سند-->
            <material-textinput id="doc_text_id" margin_left="10" margin_right="10"
                                rtl="true" expandHint="true" borderCornerRadius="4"
                                erroricon="images/error_icon.png" hint="شناسه سند" margin="0">

                <textinput hintsize="11" hintcolor="#424750" textsize="11" textcolor="black"
                           id="text-1" padding_top="16"
                           padding_bottom="16" padding_right="12"
                           padding_left="12" inputtype="number" text=""
                           onChange="script/changeScript:chagneBackground()"/>

            </material-textinput>

<!--رمز تصدسق-->
            <material-textinput margin_left="10" margin_right="10" expandHint="true" rtl="true"
                                endiconmode="password_toggle" showendicon="true"
                                hint="رمز تصدیق" borderCornerRadius="4"
                                hideArrow="true" margin_top="16" margin="0" >

                <textinput hintsize="11" hintcolor="#424750" textsize="11" textcolor="black" id="text-2"
                           padding_top="16" padding_bottom="16" padding_right="12" borderCornerRadius="4"
                           padding_left="12" inputtype="number_password" text=""
                           onChange="script/changeScript:chagneBackground()"/>

            </material-textinput>
        </frame>
    </frame>

    <frame id="bFrame" margin="15"  width="match_parent" height="match_parent" margin_top="110">
        <button id="searchButton" text="بررسی" textsize="14" textcolor="#FFFFFF"
                textalignment="center" borderCornerRadius="2" enabled="false"
                background="#D5E3FF" elevation="0" onclick="dialog/dialog"/>
    </frame>


</page>

 

<script id='changeScript'>
    function chagneBackground(){
        let shenaseSanad = Appsan.findElementById('text-1').value;
        let ramzTasdigh = Appsan.findElementById('text-2').value;

        if (shenaseSanad.length > 0 && ramzTasdigh.length > 0){

            Appsan.setProperty("searchButton" , "background" , "#0164BC");
            Appsan.setProperty("searchButton" , "enabled" , "true");
            Appsan.setProperty("lock" , "visibility" , "gone");
            Appsan.setProperty("unlock" , "visibility" , "visible");
        }
        else {

            Appsan.setProperty("searchButton" , "enabled" , "false");
            Appsan.setProperty("searchButton" , "background" , "#D5E3FF");
            Appsan.setProperty("lock" , "visibility" , "visible");
            Appsan.setProperty("unlock" , "visibility" , "gone");
        }


    }
</script>

دفاتر رسمی ازدواج و طلاق نزدیک

دفاتر رسمی ازدواج و طلاق نزدیک

صفحه ی اول

نمای مینی اپ به صورت زیر است

image-1699538217151.png

 

 

کد

<page id="choose-from-map" scrollable="false" onshown="script/map-js:init()">
    <frame layout="frame" height="match_parent" width="match_parent" margin="0">


        <osmmap id="map" width="match_parent" height="match_parent" latitude="35.8029459" longitude="51.3933681"
                showUserDot="true" onChange="update/map" margin="0">
            <marker latitude="35.8029459" longitude="51.3933681" title="دفترخانه 147" src="images/marker.png"
                    onMarkerClick="script/map-js:markerClick('1')"/>
        </osmmap>

        <frame layout="linear_vertical" selfgravity="top" layoutgravity="top" margin_top="16">
            <frame layout="linear_horizontal" onclick="page/recent-search"
                   weightsum="1" reverse="true" borderColor="#E0E0E0" height="56"
                   borderCornerRadius="28" borderStrokeWidth="0" background="white">
                <img width="24" height="24" scaleType="fit_xy" margin_right="10" src="images/location.png"/>
                <text text="جستجو..." textcolor="#ADADAD" background="transparent" onclick="page/recent-search"
                           textalignment="right" gravity="right" weight="1"/>
            </frame>
        </frame>

        <frame layoutgravity="top_right" selfgravity="top_right" layout="linear_horizontal" borderCornerRadius="4"
               background="#FFFFFF" height="30" width="wrap_content" margin_top="90" margin_right="12" reverse="true"
                padding="6" padding_right="8" padding_left="8" onclick="page/saved">
            <img src="images/tag.png" margin="0" />
            <text text="دفاتر ذخیره شده من" textcolor="#0164BC" textsize="12" margin="0"/>
        </frame>

        <frame layoutgravity="bottom_right" layout="linear_vertical" borderCornerRadius="4"
               background="#FFFFFF" padding="12" width="50" height="50">
            <imagebutton src="images/navigation.png" margin="0"/>
        </frame>
    </frame>

    <include layout="pages/map.js.appsan"/>
    <include layout="pages/dialog/search-dialog.xml.appsan"/>
</page>
<script id="map-js">
    function init(){
        Appsan.runAction("dialog/search-dialog");
    }
    function markerClick(id){
        // console.log("markerClick");
        // console.log(id);
        // Appsan.setVariable('officeId', '1');
        // Appsan.runAction('dialog/map-detail');
    }
</script>

 

دفاتر رسمی ازدواج و طلاق نزدیک

صفحه ی دوم(جستجو)

نمای مینی اپ به صورت زیر است

image-1699538434853.png

کد

<page id="recent-search" scrollable="true" layout="linear_vertical">

    <frame layout="linear_vertical" selfgravity="top" layoutgravity="top" margin_top="16">
        <frame layout="linear_horizontal"
               weightsum="1" reverse="true" borderColor="#E0E0E2" height="56"
               borderCornerRadius="28" borderStrokeWidth=".5" background="white">
            <img width="24" height="24" scaleType="fit_xy" margin_right="10" src="images/search.png"/>
            <textinput hint="جستجو..." textcolor="#ADADAD" background="transparent" onChange="script/recent-js:onSearch()"
                       textalignment="right" gravity="right" weight="1" focusable="true"/>
        </frame>
    </frame>

    <frame layout="linear_horizontal" borderCornerRadius="4"
           background="#FFFFFF" height="match_parent" width="match_parent" margin_top="10" reverse="true">
        <img src="images/navigation.png" width="30" height="30" scaleType="fit_center" margin_right="50"/>
        <text text="استفاده از موقعیت مکانی فعلی" textalignment="right" textcolor="#424750" textsize="12" margin="0"/>
    </frame>

    <frame layout="linear_vertical" borderColor="#E0E0E2" borderStrokeWidth=".5" width="match_parent" height="2"
     margin_right="16" margin_left="16">
    </frame>

    <frame layout="linear_horizontal" padding_right="16" id="recent-title">
        <img src="images/trash.png" width="30" height="30" scaleType="fit_center" margin_left="8" gravity="left"/>
        <text text="بازدیدهای اخیر" textalignment="right" textcolor="#81858B" textsize="12" margin="0"/>
    </frame>
<!--    <frame layout="linear_horizontal" padding_right="16" id="search-title">-->
<!--        <text text="نتایج جستجو" textalignment="right" textcolor="#81858B" textsize="12" margin="0"/>-->
<!--    </frame>-->

    <frame id="recent" layout="linear_vertical">
        <frame layout="linear_vertical" padding_right="8" margin_bottom="16" onclick="">
            <frame layout="linear_horizontal" width="match_parent" margin="0">
                <text text="دفتر اسناد رسمی ۶۸" textalignment="right" textcolor="#424750" textsize="12" margin="0"
                margin_right="8"/>
                <img src="images/time.png" width="24" height="24" scaleType="fit_center" margin_right="25"/>
            </frame>
            <frame layout="linear_horizontal" margin="0">
                <text textsize="12" textcolor="#81858B" width="wrap_content" textalignment="right">خیابان فردوسی،‌پلاک خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷۷</text>
            </frame>
        </frame>
        <frame layout="linear_vertical" padding_right="8" margin_bottom="16" onclick="">
            <frame layout="linear_horizontal" width="match_parent" margin="0">
                <text text="دفتر اسناد رسمی ۶۸" textalignment="right" textcolor="#424750" textsize="12" margin="0"
                margin_right="8"/>
                <img src="images/time.png" width="24" height="24" scaleType="fit_center" margin_right="25"/>
            </frame>
            <frame layout="linear_horizontal" margin="0">
                <text textsize="12" textcolor="#81858B" width="wrap_content" textalignment="right">خیابان فردوسی،‌پلاک خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷۷</text>
            </frame>
        </frame>
    </frame>
<!--    visibility gone هست اما کار نمیکنه-->
    <frame id="results" layout="linear_vertical" visibility="gone">
        <frame layout="linear_vertical" padding_right="8" margin_bottom="16" onclick="">
            <frame layout="linear_horizontal" width="match_parent" margin="0">
                <text text="دفتر اسناد رسمی ۶۸" textalignment="right" textcolor="#424750" textsize="12" margin="0"
                      margin_right="8"/>
            </frame>
            <frame layout="linear_horizontal" margin="0">
                <text textsize="12" textcolor="#81858B" width="wrap_content" textalignment="right">خیابان فردوسی،‌پلاک خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷۷</text>
            </frame>
        </frame>
        <frame layout="linear_vertical" padding_right="8" margin_bottom="16" onclick="">
            <frame layout="linear_horizontal" width="match_parent" margin="0">
                <text text="دفتر اسناد رسمی ۶۸" textalignment="right" textcolor="#424750" textsize="12" margin="0"
                      margin_right="8"/>
            </frame>
            <frame layout="linear_horizontal" margin="0">
                <text textsize="12" textcolor="#81858B" width="wrap_content" textalignment="right">خیابان فردوسی،‌پلاک خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷خیابان فردوسی،‌پلاک ۷۷</text>
            </frame>
        </frame>
    </frame>

    <script id="recent-js">
        function onSearch() {
            Appsan.setProperty('recent', 'visibility', 'gone');
            Appsan.setProperty('recent-title', 'visibility', 'gone');
            Appsan.setProperty('results', 'visibility', 'visible');
            Appsan.setProperty('search-title', 'visibility', 'visible');
        }
    </script>
</page>

 

دفاتر رسمی ازدواج و طلاق نزدیک

صفحه ی سوم (مکان های مورد علاقه)

نمای مینی اپ به صورت زیر میباشد

image-1699538658648.png

کد

<page id="saved" layout="linear_vertical">

    <frame id="item" layout="linear_vertical" margin_top="10" onclick="page/dafater-info">

        <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
               gravity="center" margin="0" margin_right="10"
               weightsum="1" padding="0">
            <text gravity="left" textalignment="right" text="دفترخانه رسمی شماره ۸ شهر تهران،‌دبیرخانه" weight="1"
                  width="match_parent"
                  padding_left="4" textsize="13"/>
        </frame>
        <frame layout="linear_horizontal" weightsum="6" reverse="true"
               borderStrokeWidth="0" margin_top="0"
               borderCornerRadius="14" background="#FFFFFF">

            <frame layout="linear_vertical" padding="0" weight="1" margin="0">


                <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                       gravity="center"
                       weightsum="1" padding="0">
                    <img width="24" height="24" gravity="right" scaleType="fit_center"
                         src="images/location.png"/>
                    <text gravity="left" textalignment="right" text="تهران،‌خیابان فردوسی،‌پلاک ۷۸" weight="1"
                          width="match_parent"
                          padding_left="4" textsize="12" textcolor="#424750"/>
                </frame>
                <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                       gravity="center"
                       weightsum="1" padding="0">
                    <img width="24" height="24" gravity="right" scaleType="fit_center"
                         src="images/circle.png"/>
                    <text gravity="left" textalignment="right" text="۱۷۴۲۴۲۶۲۴۸۳۲" weight="1" width="match_parent"
                          padding_left="4" textsize="12" textcolor="#424750"/>
                </frame>
                <frame layout="linear_horizontal" weightsum="3" reverse="true">
                    <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                           borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                           padding_right="12" padding_left="0" padding_top="6" padding_bottom="6" onclick="call/09000000000">
                        <img width="18" height="18" margin_right="20" gravity="right"
                             scaleType="fit_center"
                             src="images/phone-icon.png"/>
                        <text textsize="11" textalignment="right" margin_left="0" textcolor="#424750" text="تماس"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                           borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                           padding_right="12" padding_left="0" padding_top="6" padding_bottom="6" onclick="navigate/35.8029459,35.8029459">
                        <img width="18" height="18" margin_right="22" gravity="right"
                             scaleType="fit_center"
                             src="images/direction.png"/>
                        <text textsize="11" textalignment="right" margin_left="0" textcolor="#424750"
                               text="مسیریابی"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="3"></frame>
                </frame>
            </frame>
            <frame weight="5" gravity="top">
                <frame layout="frame" gravity="top"  onclick="dialog/delete-confirm">
<!--
  ok delete   visibility gone beshe hamoon  id k hazf shod mese button 4taie
  id e image-->
                    <img width="40" height="40" scaleType="fit_center" src="images/tag-filled-circle.png"/>
                </frame>
            </frame>
        </frame>

        <frame layout="linear_vertical" borderColor="#E0E0E2" borderStrokeWidth=".5" width="match_parent" height="2">
        </frame>
    </frame>
    <frame id="item-2" layout="linear_vertical" margin_top="10" >

        <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
               gravity="center" margin="0" margin_right="10"
               weightsum="1" padding="0">
            <text gravity="left" textalignment="right" text="دفترخانه رسمی شماره ۸ شهر تهران،‌دبیرخانه" weight="1"
                  width="match_parent"
                  padding_left="4" textsize="13"/>
        </frame>
        <frame layout="linear_horizontal" weightsum="6" reverse="true"
               borderStrokeWidth="0" margin_top="0"
               borderCornerRadius="14" background="#FFFFFF">

            <frame layout="linear_vertical" padding="0" weight="1" margin="0">


                <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                       gravity="center"
                       weightsum="1" padding="0">
                    <img width="24" height="24" gravity="right" scaleType="fit_center"
                         src="images/location.png"/>
                    <text gravity="left" textalignment="right" text="تهران،‌خیابان فردوسی،‌پلاک ۷۸" weight="1"
                          width="match_parent"
                          padding_left="4" textsize="12" textcolor="#424750"/>
                </frame>
                <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                       gravity="center"
                       weightsum="1" padding="0">
                    <img width="24" height="24" gravity="right" scaleType="fit_center"
                         src="images/circle.png"/>
                    <text gravity="left" textalignment="right" text="۱۷۴۲۴۲۶۲۴۸۳۲" weight="1" width="match_parent"
                          padding_left="4" textsize="12" textcolor="#424750"/>
                </frame>
                <frame layout="linear_horizontal" weightsum="3" reverse="true">
                    <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                           borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                           padding_right="12" padding_left="0" padding_top="6" padding_bottom="6" onclick="call/09000000000">
                        <img width="18" height="18" margin_right="20" gravity="right"
                             scaleType="fit_center"
                             src="images/phone-icon.png"/>
                        <text textsize="11" textalignment="right" margin_left="0" textcolor="#424750" text="تماس"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                           borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                           padding_right="12" padding_left="0" padding_top="6" padding_bottom="6" onclick="navigate/35.8029459,35.8029459">
                        <img width="18" height="18" margin_right="22" gravity="right"
                             scaleType="fit_center"
                             src="images/direction.png"/>
                        <text textsize="11" textalignment="right" margin_left="0" textcolor="#424750"
                              text="مسیریابی"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="3"></frame>
                </frame>
            </frame>
            <frame weight="5" gravity="top">
                <frame layout="frame" gravity="top" onclick="dialog/delete-confirm">
                    <img width="40" height="40" scaleType="fit_center" src="images/tag-filled-circle.png"/>
                </frame>
            </frame>
        </frame>

        <frame layout="linear_vertical" borderColor="#E0E0E2" borderStrokeWidth=".5" width="match_parent" height="2">
        </frame>
    </frame>
    <script id="search-dialog-js">
        function raiseDialog() {
            Appsan.setProperty('province-frame', 'visibility', 'visible');
            Appsan.setProperty('city-frame', 'visibility', 'visible');
            Appsan.setProperty('button-frame', 'visibility', 'visible');
        }
    </script>
</page>

<include layout="pages/dialog/ostan.xml.appsan"/>
<include layout="pages/dialog/city.xml.appsan"/>
<include layout="pages/dialog/delete-confirm.xml.appsan"/>
<include layout="pages/dafater-info.xml.appsan"/>

 

دفاتر رسمی ازدواج و طلاق نزدیک

دیالوگ صفحه سوم(حذف مکان)

نمای مینی اپ به صورت زیر است

image-1699538925690.png

کد

<dialog id="delete-confirm" borderCornerRadius="10"  padding="8">
    <frame layout="linear_vertical">
        <text renderas="html" textcolor="#45464F" text="حذف  از لیست دفاتر ذخیره شده من" textsize="14" textstyle="bold"
              textalignment="right" gravity="right"></text>
    </frame>
    <frame layout="linear_vertical">
        <text renderas="html" textcolor="#45464F" text="با حذف این آدرس ‌از لیست دفاتر ذخیره شده من حذف می‌شود. آیا مطمئن هستید؟" textsize="14"
              textalignment="right" gravity="right"></text>
    </frame>


    <frame reverse="true">
        <button width="wrap_content" padding="6" margin_left="8" margin_right="8" text="انصراف" textsize="14"
                textcolor="#0164BC" borderColor="#0164BC" borderStrokeWidth="0.5" height="wrap_content" onclick="app/closeDialog"
                background="#FFFFFF" borderCornerRadius="16" id="enseraf"/>
        <button width="wrap_content" padding="6" margin_left="8" margin_right="8" text="تایید حذف" textsize="14"
                textcolor="#FFFFFF"  height="wrap_content" onclick="script/confirm2:openDialog();script/confirm:closeDialog()"
                background="#0164BC" borderCornerRadius="16" id="taeed"/>
    </frame>
    <script id="confirm2">
        function openDialog() {
            Appsan.runAction('dialog/delete-ok');
        }
    </script>
    <script id="confirm">
        function closeDialog() {
            Appsan.runAction('app/closeDialog');
        }
    </script>

</dialog>


 

دیالوگ بعدی پس از حذف مکان

 

image-1699539069918.png

کد

<dialog id="delete-ok" borderCornerRadius="5">
    <frame layout="linear_vertical" width="75" height="65" gravity="center" onclick="app/closeDialog">
        <image src="images/Ok.png" width="match_parent" selfgravity="center"/>
    </frame>
    <frame layout="linear_vertical" onclick="app/closeDialog">
        <text renderas="html" textcolor="#424750" text="دفترخانه از لیست دفاتر ذخیره‌شده من حذف شد." textsize="12"
              textalignment="center" gravity="center"></text>
    </frame>
    <frame></frame>

</dialog>

 

 

 

وقایع ازدواج و طلاق من

وقایع ازدواج و طلاق من

صفحه ی اول

نمای مینی اپ به صورت زیر است

image-1699540639488.png

کد

<page id="vaghaye" background="#F8F8F8" padding="16" scrollable="false" gravity="top" onshown="script/vaghayejs:init()">
    <frame layout="linear_vertical" scrollable="true">
        <frame layout="linear_horizontal" width="match_parent" height="64"
               background="#D5E3FF" reverse="true" gravity="center" margin="0"
               borderCornerRadius="2" weightsum="1">
            <img width="24" height="24" margin_right="16" gravity="right" scaleType="fit_center"
                 src="images/Details.png"/>
            <text gravity="left" textalignment="right" text="اسناد ثبت شده از سال ۱۳۹۲ به بعد در سامانه می‌باشد."
                  weight="1"
                  width="match_parent"
                  padding_left="4" textcolor="#0164BC" textsize="13"/>
        </frame>

        <frame layout="linear_horizontal" gravity="center" reverse="true" scrollable="true" margin_top="16"
               hidehorizontalscrollbar="true">
            <frame width="wrap_content" margin_left="8" margin_right="8" height="wrap_content"
                   onclick="script/main:tabClick('marriage')" padding_left="10" padding_right="10"
                   background="#0164BC" borderCornerRadius="16" id="btn_marriage">
                <text text="ازدواج" textsize="14" textcolor="#FFFFFF" id="txt_marriage"/>
            </frame>

            <frame width="wrap_content" margin_left="8" margin_right="8" height="wrap_content"
                   onclick="script/main:tabClick('divorce')" padding_left="10" padding_right="10"
                   background="#FFFFFF" borderCornerRadius="16" id="btn_divorce" borderColor="#E0E0E2">
                <text text="طلاق" textsize="14" textcolor="#424750" id="txt_divorce"></text>
            </frame>

            <frame width="wrap_content" margin_left="8" margin_right="8" height="wrap_content"
                   onclick="script/main:tabClick('share')" borderColor="#E0E0E2" padding_left="10" padding_right="10"
                   background="#FFFFFF" borderCornerRadius="16" id="btn_share">
                <text text="اشتراک گذاری" textsize="14" textcolor="#424750" id="txt_share"></text>
            </frame>

            <frame width="wrap_content" margin_left="8" margin_right="8"
                   height="wrap_content" onclick="script/main:tabClick('other')" padding_left="10" padding_right="10"
                   background="#FFFFFF" borderCornerRadius="16" id="btn_other" borderColor="#E0E0E2">
                <text text="وقایع دیگران" textsize="14" textcolor="#424750" id="txt_other"></text>
            </frame>
        </frame>

        <frame layout="linear_vertical" id="marriage" margin="0">

        </frame>

        <frame id="divorce" layout="linear_vertical" visibility="gone" margin="0">

        </frame>

        <frame id="share" layout="linear_vertical" visibility="gone" margin="0">

        </frame>

        <frame id="other" layout="linear_vertical" visibility="gone" margin="0">

        </frame>
    </frame>

    <script id="main">
        function tabClick(id) {
            const buttons = ['marriage', 'divorce', 'share', 'other']
            buttons.forEach(b => {
                if (id !== b) {
                    Appsan.setProperty('txt_' + b, 'textcolor', '#424750');
                    Appsan.setProperty('btn_' + b, 'background', '#FFFFFF');
                    Appsan.setProperty(b, 'visibility', 'gone');
                }
            })
            Appsan.setProperty('txt_' + id, 'textcolor', '#FFFFFF');
            Appsan.setProperty('btn_' + id, 'background', '#0164BC');
            Appsan.setProperty(id, 'visibility', 'visible');
        }

        function closeElem(id) {
            Appsan.setProperty(id, 'visibility', 'gone');
        }

        function openDetails(id) {
            Appsan.setVariable('doc_id', id);
            Appsan.runAction('page/sanad-ezdevaj');
        }
    </script>

    <include layout="pages/ezdevaj-va-talagh-vaghaye/vaghaye.js.appsan"/>
</page>
<include layout="pages/ezdevaj-va-talagh-vaghaye/sanad-ezdevaj.xml.appsan"/>
<include layout="pages/ezdevaj-va-talagh-vaghaye/dialogs/eshterak.xml.appsan"/>
<include layout="pages/ezdevaj-va-talagh-vaghaye/dialogs/sharelaghv.xml.appsan"/>
<include layout="pages/ezdevaj-va-talagh-vaghaye/dialogs/sharelaghvConfirm.xml.appsan"/>


<script id="vaghayejs">
    const emptyContent = `    <frame  layoutgravity="center" layout="linear_horizontal" width="match_parent" height="100" margin_top="80" gravity="center" childgravity="center">
        <img width="90" height="90" gravity="center" src="images/file.png" scaleType="fit_center" selfgravity="center_horizontal"/>

    </frame>
    <text gravity="center" textalignment="center" text="واقعه ای برای شما ثبت نشده است"
          textcolor="#616161" textsize="14"/>
    <frame></frame>
    <frame width="wrap_content" height="48" borderColor="#0164BC" borderCornerRadius="8" borderStrokeWidth="0.5"
           onclick="app/end" margin_top="64" padding_right="16" padding_left="16" background="#FFFFFF">
        <text textsize="14" textcolor="#0164BC" text="بازگشت به صفحه اصلی " textalignment="center"/>
    </frame>`;

    function init() {
        HTTPClient.get('http://192.168.1.109:3000/api/v1/marry/myEvents',
            {
                headers: {
                    "Content-Type": "application/json",
                    "Authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJtaW5pQXBwTmFtZSI6ImFwcDphZG1pbjp2YWdoYXllLWV6ZGV2YWotdmEtdGFsYWdoIiwidXNlcm5hbWUiOiIxMTExMTExMTExIiwic3ViIjoibWluaUFwcCIsImlhdCI6MTY5OTA4MTMxMywiZXhwIjoxNjk5OTQ1MzEzfQ.eR5ZDvwajy-ibloi5TiwIAFqftJLvsVzwkm7DjOggthy6zyxdNSmuxYmdON7MSEvKKCLO344iKggT88g82zauw",
                    "user-token": ""
                }
            }).subscribe(res => {
                Appsan.setVariable('response', JSON.stringify(res))
                if (res && res.length > 0)
                    processMyMarries(res);
                else {
                    setEmptyContent('marriage');
                    setEmptyContent('divorce');
                }
            }, err => {
                setEmptyContent('marriage', true);
                setEmptyContent('divorce', true);
            }
        );
        HTTPClient.get('http://192.168.1.109:3000/api/v1/marry/mySharedEvents',
            {
                headers: {
                    "Content-Type": "application/json",
                    "Authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJtaW5pQXBwTmFtZSI6ImFwcDphZG1pbjp2YWdoYXllLWV6ZGV2YWotdmEtdGFsYWdoIiwidXNlcm5hbWUiOiIxMTExMTExMTExIiwic3ViIjoibWluaUFwcCIsImlhdCI6MTY5OTA4MTMxMywiZXhwIjoxNjk5OTQ1MzEzfQ.eR5ZDvwajy-ibloi5TiwIAFqftJLvsVzwkm7DjOggthy6zyxdNSmuxYmdON7MSEvKKCLO344iKggT88g82zauw",
                    "user-token": ""
                }
            }).subscribe(res => {
                Appsan.setVariable('response', JSON.stringify(res))
                if (res && res.length > 0)
                    processMyShared(res);
                else {
                    setEmptyContent('share');
                }
            }, err => {
                setEmptyContent('share', true);
            }
        );
        HTTPClient.get('http://192.168.1.109:3000/api/v1/marry/othersEvents',
            {
                headers: {
                    "Content-Type": "application/json",
                    "Authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJtaW5pQXBwTmFtZSI6ImFwcDphZG1pbjp2YWdoYXllLWV6ZGV2YWotdmEtdGFsYWdoIiwidXNlcm5hbWUiOiIxMTExMTExMTExIiwic3ViIjoibWluaUFwcCIsImlhdCI6MTY5OTA4MTMxMywiZXhwIjoxNjk5OTQ1MzEzfQ.eR5ZDvwajy-ibloi5TiwIAFqftJLvsVzwkm7DjOggthy6zyxdNSmuxYmdON7MSEvKKCLO344iKggT88g82zauw",
                    "user-token": ""
                }
            }).subscribe(res => {
                Appsan.setVariable('response', JSON.stringify(res))
                if (res && res.length > 0)
                    processOthers(res);
                else {
                    setEmptyContent('other');
                }
            }, err => {
                setEmptyContent('other', true);
            }
        );
    }

    function processOthers(res) {
        let content = "";
        for (let i = 0; i < res.length; i++) {
            const row = res[i];
            content+=`<frame layout="linear_horizontal" weightsum="6" reverse="true" id="otherdoc"
                   borderStrokeWidth="0" margin="0" margin_top="6"
                   borderCornerRadius="14" background="#FFFFFF">
                <frame layout="linear_vertical" padding="6" weight="1">

                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <text gravity="left" textalignment="right" text="ازدواج" weight="1" width="match_parent"
                              padding_left="4" textsize="13"/>
                    </frame>

                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شناسه یکتا"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                              text="${row.requestNo}"/>
                    </frame>

<!--                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"-->
<!--                           gravity="center"-->
<!--                           weightsum="1" padding="0">-->
<!--                        <img width="16" height="16" gravity="right" scaleType="fit_center"-->
<!--                             src="images/Phone.png"/>-->
<!--                        <text gravity="left" textalignment="right" text="۰۹۱۷۴۸۷۳۶۴۳" weight="1" width="match_parent"-->
<!--                              padding_left="4" textsize="12" textcolor="#424750"/>-->
<!--                    </frame>-->
                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <img width="16" height="16" gravity="right" scaleType="fit_center"
                             src="images/id-doc.png"/>
                        <text gravity="left" textalignment="right" text="${row.personNationalNoTo}" weight="1" width="match_parent"
                              padding_left="4" textsize="12" textcolor="#424750"/>
                    </frame>
                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <img width="16" height="16" gravity="right" scaleType="fit_center"
                             src="images/calender.png"/>
                        <text gravity="left" textalignment="right" text="${row.expireDate}" weight="1"
                              width="match_parent"
                              padding_left="4" textsize="12" textcolor="#424750"/>
                    </frame>
                    <frame layout="linear_horizontal" weightsum="6" reverse="true">
                        <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                               borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                               padding_right="16" padding_left="16" height="32"
                               onclick="script/main:openDetails('${row.requestNo}')">
                            <img width="18" height="18" margin_right="8" margin_left="0" gravity="right"
                                 scaleType="fit_center"
                                 src="images/More.png"/>
                            <text textsize="11" textalignment="right" textcolor="#424750" text="جزئیات سند"
                                  margin_left="10"/>
                        </frame>
                        <frame weight="5"></frame>
                    </frame>
                </frame>
                <frame weight="5">
                    <frame layout="frame">
                        <img width="40" height="40" scaleType="fit_center" src="images/cancel.png"
                             onclick="script/vaghayejs:dshare('${row.id}')"/>
                    </frame>
                </frame>
            </frame>`;
            Appsan.setProperty('other', 'innerElements', content)
        }
    }
    function processMyShared(res) {
        let content = "";
        for (let i = 0; i < res.length; i++) {
            const row = res[i];
            content += `<frame layout="linear_horizontal" weightsum="6" reverse="true"
                   borderStrokeWidth="0" margin="0" margin_top="6"
                   borderCornerRadius="14" background="#FFFFFF">
                <frame layout="linear_vertical" padding="6" weight="1">

                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <text gravity="left" textalignment="right" text="ازدواج" weight="1" width="match_parent"
                              padding_left="4" textsize="13"/>
                    </frame>

                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شناسه یکتا"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                              text="${row.requestNo}"/>
                    </frame>

                    <frame layout="linear_horizontal" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <img width="16" height="16" gravity="right" scaleType="fit_center"
                             src="images/Phone.png"/>
                        <text gravity="left" textalignment="right" text="${row.phoneNo}" weight="1" width="match_parent"
                              padding_left="4" textsize="12" textcolor="#424750"/>
                    </frame>
                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <img width="16" height="16" gravity="right" scaleType="fit_center"
                             src="images/id-doc.png"/>
                        <text gravity="left" textalignment="right" text="${row.personNationalNoTo}" weight="1" width="match_parent"
                              padding_left="4" textsize="12" textcolor="#424750"/>
                    </frame>
                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <img width="16" height="16" gravity="right" scaleType="fit_center"
                             src="images/calender.png"/>
                        <text gravity="left" textalignment="right" text="${row.expireDate}" weight="1"
                              width="match_parent"
                              padding_left="4" textsize="12" textcolor="#424750"/>
                    </frame>
                    <frame layout="linear_horizontal" weightsum="6" reverse="true">
                        <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                               borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                               padding_right="16" padding_left="16" height="32"
                               onclick="script/main:openDetails('${row.requestNo}')">
<!--                               page/sanad-ezdevaj-->
                            <img width="18" height="18" margin_right="8" margin_left="0" gravity="right"
                                 scaleType="fit_center"
                                 src="images/More.png"/>
                            <text textsize="11" textalignment="right" textcolor="#424750" text="جزئیات سند"
                                  margin_left="10"/>
                        </frame>
                        <frame weight="5"></frame>
                    </frame>
                </frame>
                <frame weight="5">
                    <frame layout="frame">
                        <img width="40" height="40" scaleType="fit_center" src="images/cancel.png"
                             onclick="script/vaghayejs:dshare('${row.id}')"/>
                    </frame>
                </frame>
            </frame>`;
            Appsan.setProperty('share', 'innerElements', content)
        }
    }

    function processMyMarries(res) {
        let contentMarry = "";
        let contentDivorce = "";
        for (let i = 0; i < res.length; i++) {
            const row = res[i];
            if (row.typeCode === 1) {
                contentMarry += `<frame layout="linear_horizontal" weightsum="6"  reverse="true" borderStrokeWidth="0" margin="0" margin_top="6"
                   borderCornerRadius="14" background="#FFFFFF">
                <frame layout="linear_vertical" padding="6" weight="1">

                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <img width="24" height="24" gravity="right" scaleType="fit_center"
                             src="images/Ring.png"/>
                        <text gravity="left" textalignment="right" text="ازدواج" weight="1" width="match_parent"
                              padding_left="4" textsize="13"/>
                    </frame>

                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شناسه یکتا"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                              text="${row.nationalRegisterNo}"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شماره ترتیب"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750" text="${row.registerNO}"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="تاریخ ثبت"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750" text="${row.registerDate}"/>
                    </frame>
                    <frame layout="linear_horizontal" weightsum="6" reverse="true">
                        <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                               borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                               padding_right="16" padding_left="16" height="32"
                               onclick="script/main:openDetails('${row.nationalRegisterNo}')">
                            <img width="18" height="18" margin_right="8" margin_left="0" gravity="right"
                                 scaleType="fit_center"
                                 src="images/More.png"/>
                            <text textsize="11" textalignment="right" textcolor="#424750" text="جزئیات سند"
                                  margin_left="10"/>
                        </frame>
                        <frame weight="5"></frame>
                    </frame>
                </frame>
                <frame weight="5">
                    <frame layout="frame" margin_left="5">
                        <img width="40" height="40" scaleType="fit_center" src="${row.isShared?'images/Share.png':'images/Share.png'}"
                            onclick="script/vaghayejs:openEshterak('${row.nationalRegisterNo}')"/>
                    </frame>
                </frame>
            </frame>`;
            } else {
                contentDivorce += `<frame layout="linear_horizontal" weightsum="6" reverse="true"
                   borderStrokeWidth="0" margin="0" margin_top="6"
                   borderCornerRadius="14" background="#FFFFFF">
                <frame layout="linear_vertical" padding="6" weight="1">

                    <frame layout="linear_horizontal" id="alert-message" width="match_parent" reverse="true"
                           gravity="center"
                           weightsum="1" padding="0">
                        <img width="24" height="24" gravity="right" scaleType="fit_center"
                             src="images/Ring.png"/>
                        <text gravity="left" textalignment="right" text="طلاق" weight="1" width="match_parent"
                              padding_left="4" textsize="13"/>
                    </frame>

                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شناسه یکتا"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                              text="${row.nationalRegisterNo}"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شماره ترتیب"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750" text="${row.registerNO}"/>
                    </frame>
                    <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                        <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="تاریخ ثبت"/>
                        <text textsize="12" textalignment="right" weight="1" textcolor="#424750" text="${row.registerDate}"/>
                    </frame>
                    <frame layout="linear_horizontal" weightsum="6" reverse="true">
                        <frame layout="linear_horizontal" weight="1" reverse="true" width="wrap_content"
                               borderColor="#E0E0E2" borderStrokeWidth="0.5" borderCornerRadius="16"
                               padding_right="16" padding_left="16" padding_top="6" padding_bottom="6"
                               onclick="script/main:openDetails('${row.nationalRegisterNo}')">
                            <img width="18" height="18" margin_right="8" margin_left="0" gravity="right"
                                 scaleType="fit_center"
                                 src="images/More.png"/>
                            <text textsize="11" textalignment="right" textcolor="#424750" text="جزئیات سند"
                                  margin_left="10"/>
                        </frame>
                        <frame weight="5"></frame>
                    </frame>
                </frame>
                <frame weight="5">
                    <frame layout="frame">
                        <img width="40" height="40" scaleType="fit_center" src="${row.isShared?'images/Ring.png':'images/Share.png'}"
                             onclick="script/vaghayejs:openEshterak('${row.nationalRegisterNo}')"/>
                    </frame>
                </frame>
            </frame>`;
            }
        }
        if (contentMarry.length > 0) {
            Appsan.setProperty('marriage', 'innerElements', contentMarry)
        } else {
            setEmptyContent('marriage', false)
        }
        if (contentDivorce.length > 0) {
            Appsan.setProperty('divorce', 'innerElements', contentMarry)
        } else {
            setEmptyContent('divorce', false)
        }
    }

    function setEmptyContent(el, isError) {
        Appsan.setProperty(el, 'innerElements', emptyContent)
        if (isError)
            Appsan.runAction('snackbar/errorSnackbar');
    }
    function openEshterak(registerNo) {
        Appsan.setVariable('registerNo', registerNo);
        Appsan.runAction('dialog/dialog-eshterak')
    }

    function dshare(id) {
        Appsan.setVariable('shareId', id);
        Appsan.runAction('dialog/dialog-confirm');
    }

</script>
وقایع ازدواج و طلاق من

صفحه ازدواج

نمای مینی اپ به صورت زیر است

image-1699542847073.png

 

کد

<page id="sanad-ezdevaj" onshown="script/main:init()">

    <script id="main">
        function tabClick(id) {
            const buttons = ['sanad', 'zojein']
            buttons.forEach(b => {
                if (id !== b) {
                    Appsan.setProperty('btn_' + b, 'textcolor', '#43474E');
                    Appsan.setProperty(b, 'visibility', 'gone');
                }
            })
            Appsan.setProperty('btn_' + id, 'textcolor', '#0164BC');
            Appsan.setProperty(id, 'visibility', 'visible');
        }

        function init() {
            const requestNo = Appsan.getVariable('doc_id')?.value
            HTTPClient.get('http://192.168.1.109:3000/api/v1/marry/detailsEvent/' + requestNo,
                {
                    headers: {
                        "Content-Type": "application/json",
                        "Authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJtaW5pQXBwTmFtZSI6ImFwcDphZG1pbjp2YWdoYXllLWV6ZGV2YWotdmEtdGFsYWdoIiwidXNlcm5hbWUiOiIxMTExMTExMTExIiwic3ViIjoibWluaUFwcCIsImlhdCI6MTY5OTA4MTMxMywiZXhwIjoxNjk5OTQ1MzEzfQ.eR5ZDvwajy-ibloi5TiwIAFqftJLvsVzwkm7DjOggthy6zyxdNSmuxYmdON7MSEvKKCLO344iKggT88g82zauw",
                        "user-token": ""
                    }
                }).subscribe(res => {
                    if (res)
                        processDetailsDoc(res);
                    else
                        Appsan.runAction('snackbar/errorSnackbar');
                }
            );
        }
        function processDetailsDoc(res) {
            Appsan.setProperty('txt_nationalNo', 'text', res.nationalRegisterNo);
            Appsan.setProperty('txt_serialNo', 'text', res.registerNO);
            Appsan.setProperty('txt_registerDate', 'text', res.registerDate);
            Appsan.setProperty('txt_scriptoriumName', 'text', res.scriptoriumName);
            Appsan.setProperty('txt_wifeFullName', 'text', res.wifeFullName);
            Appsan.setProperty('txt_wifeNationalNO', 'text', res.wifeNationalNO);
            Appsan.setProperty('txt_husbandFullName', 'text', res.husbandFullName);
            Appsan.setProperty('txt_husbandNationalNO', 'text', res.husbandNationalNO);
        }
   </script>

    <frame layout="linear_vertical" gravity="center" margin="16" width="match_parent"
           background="white">

        <img width="match_parent" height="220" src="images/sanad3.png"/>
        <text text="سند ازدواج" textcolor="#424750" textsize="12"></text>

        <frame layout="linear_horizontal" weight="1" weightsum="2" reverse="true"
               margin="16">
            <frame layout="linear_vertical" height="48" weight="1" gravity="right" childgravity="right"
                   padding_bottom="12"
                   weightsum="1" reverse="true" background="white">
                <text textsize="13" textcolor="#0164BC" textalignment="right" gravity="right" textstyle="bold"
                      text="مشخصات سند" id="btn_sanad" padding_right="20" onclick="script/main:tabClick('sanad')"/>
            </frame>
            <frame layout="linear_vertical" height="48" weight="1" gravity="right" childgravity="right"
                   reverse="true" padding_bottom="12"
                   background="white">
                <text textsize="12" textcolor="#43474E" textalignment="left" gravity="left" id="btn_zojein"
                      text="مشخصات زوجین" padding_left="20" onclick="script/main:tabClick('zojein')"/>
            </frame>
        </frame>

        <frame margin_right="16" margin_left="16">
            <divider color="#E6E0E9" size="1"></divider>
        </frame>
        <frame></frame>

        <frame layout="linear_vertical" weight="1" id="sanad" visibility="visible">
            <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شناسه یکتا"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                      text="" id="txt_nationalNo"/>
            </frame>
            <frame margin_right="12" margin_left="12">
                <divider color="#F0F0F1" size="1"></divider>
            </frame>
            <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="شماره ترتیب"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750" id="txt_serialNo"/>
            </frame>
            <frame margin_right="12" margin_left="12">
                <divider color="#F0F0F1" size="1"></divider>
            </frame>
            <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="تاریخ ثبت"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750" id="txt_registerDate"/>
            </frame>
            <frame margin_right="12" margin_left="12">
                <divider color="#F0F0F1" size="1"></divider>
            </frame>
            <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true">
                <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="دفترخانه"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750" id="txt_scriptoriumName"/>
            </frame>

        </frame>

        <frame layout="linear_vertical" id="zojein" visibility="gone">

            <frame layout="linear_horizontal"  width="match_parent" reverse="true"
                   gravity="center"
                   weightsum="2" padding="0">
                <img width="24" height="24" gravity="right" scaleType="fit_center"
                     src="images/User.png"/>
                <text gravity="left" textalignment="right" text="نام و نام خانوادگی زوجه" weight="1"
                      padding_left="4" textsize="12"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                      text="" id="txt_wifeFullName"/>
            </frame>

            <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true" margin_right="28">
                <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="کد ملی زوجه"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                      text="" id="txt_wifeNationalNO"/>
            </frame>
            <frame margin_right="12" margin_left="12">
                <divider color="#F0F0F1" size="1"></divider>
            </frame>
            <frame layout="linear_horizontal"  width="match_parent" reverse="true"
                   gravity="center"
                   weightsum="2" padding="0">
                <img width="24" height="24" gravity="right" scaleType="fit_center"
                     src="images/User.png"/>
                <text gravity="left" textalignment="right" text="نام و نام خانوادگی زوج" weight="1"
                      padding_left="4" textsize="12"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                      text="" id="txt_husbandFullName"/>
            </frame>

            <frame layout="linear_horizontal" weight="1" weightsum="3" reverse="true" margin_right="28">
                <text textsize="12" textalignment="right" weight="2" textcolor="#424750" text="کد ملی زوج"/>
                <text textsize="12" textalignment="right" weight="1" textcolor="#424750"
                      id="txt_husbandNationalNO"/>
            </frame>
        </frame>

    </frame>

</page>
وقایع ازدواج و طلاق من

صفحه یافت نشد

نمای مینی اپ به صورت زیر است

 

کد

<page id="vaghayenot-form" background="#F8F8F8" padding="16" scrollable="false" gravity="top">
    <frame layout="linear_vertical" scrollable="true">
    <frame layout="linear_horizontal" width="match_parent" height="64"
           background="#D5E3FF" reverse="true" gravity="center" margin="0"
           borderCornerRadius="2" weightsum="1">
        <img width="24" height="24" margin_right="16" gravity="right" scaleType="fit_center"
             src="images/Details.png"/>
        <text gravity="left" textalignment="right" text="اسناد ثبت شده از سال ۱۳۹۲ به بعد در سامانه می‌باشد."
              weight="1"
              width="match_parent"
              padding_left="4" textcolor="#0164BC" textsize="13"/>
    </frame>

    <frame layout="linear_horizontal" gravity="center" reverse="true" scrollable="true" margin_top="16"
           hidehorizontalscrollbar="true">
        <frame width="wrap_content" margin_left="8" margin_right="8" height="wrap_content"
               onclick="script/main:tabClick('marriage')" padding_left="10" padding_right="10"
               background="#FFFFFF" borderCornerRadius="16" id="btn_marriage">
            <text text="ازدواج" textsize="14" textcolor="#424750"  id="txt_marriage"/>
        </frame>

        <frame width="wrap_content" margin_left="8" margin_right="8" height="wrap_content"
               onclick="script/main:tabClick('divorce')" padding_left="10" padding_right="10"
               background="#FFFFFF" borderCornerRadius="16" id="btn_divorce" borderColor="#E0E0E2">
            <text text="طلاق" textsize="14" textcolor="#424750" id="txt_divorce"></text>
        </frame>

        <frame width="wrap_content" margin_left="8" margin_right="8" height="wrap_content"
               onclick="script/main:tabClick('share')" borderColor="#E0E0E2" padding_left="10" padding_right="10"
               background="#0164BC" borderCornerRadius="16" id="btn_share" >
            <text text="اشتراک گذاری" textsize="14" textcolor="#FFFFFF" id="txt_share"></text>
        </frame>

        <frame width="wrap_content" margin_left="8" margin_right="8"
               height="wrap_content" onclick="script/main:tabClick('other')" padding_left="10" padding_right="10"
               background="#FFFFFF" borderCornerRadius="16" id="btn_other" borderColor="#E0E0E2">
            <text text="وقایع دیگران" textsize="14" textcolor="#424750" id="txt_other"></text>
        </frame>
    </frame>

    <frame  layoutgravity="center" layout="linear_horizontal" width="match_parent" height="100" margin_top="80" gravity="center" childgravity="center">
        <img width="90" height="90" gravity="center" src="images/file.png" scaleType="fit_center" selfgravity="center_horizontal"/>

    </frame>
    <text gravity="center" textalignment="center" text="واقعه ای برای شما ثبت نشده است"
          textcolor="#616161" textsize="14"/>
    <frame></frame>
    <frame width="wrap_content" height="48" borderColor="#0164BC" borderCornerRadius="8" borderStrokeWidth="0.5"
           onclick="app/end" margin_top="64" padding_right="16" padding_left="16" background="#FFFFFF">
        <text textsize="14" textcolor="#0164BC" text="بازگشت به صفحه اصلی " textalignment="center"/>
    </frame>

</page>