Advertisement
0re5ama

subsidy-LOL

Mar 9th, 2020
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 8.59 KB | None | 0 0
  1.         private void save_Data()
  2.         {
  3.             try
  4.             {
  5.                 if (_cm.check_Ceased(this.cb_SHS_ID.SelectedValue.ToString(), "SHS") == false)
  6.                 {
  7.                     if (this.check_Data() == true)
  8.                     {
  9.                         if (this.check_Installation_Date() == false)
  10.                         {
  11.                             if (this.check_System_Capacity() == true)
  12.                             {
  13.                                 if (this.check_Battery_Ratio() == true)
  14.                                 {
  15.                                     if (_cm.check_Submitted(this.cb_SHS_ID.SelectedValue.ToString()) == false)
  16.                                     {
  17.                                         if (_cm.check_Rejected(this.cb_SHS_ID.SelectedValue.ToString()) == false)
  18.                                         {
  19.                                             if (_cm.check_Verified(this.cb_SHS_ID.SelectedValue.ToString()) == false)
  20.                                             {
  21.                                                 string _ctz_dup_msg = _cm.check_Citizenship_No(this.cb_SHS_ID.SelectedValue.ToString(), Regex.Replace(this.txt_CITIZENSHIP_ID.Text, @"\s", ""), this.cb_CTZ_DIST_ID.SelectedValue.ToString(), Convert.ToDateTime(_sm.default_Date_When_Null(this.txt_INSTALLATION_DATE_AD.Text)), Convert.ToDecimal(_sm.zero_When_Null(this.txt_SYSTEM_CAPACITY.Text)));
  22.                                                 if (_ctz_dup_msg == "")
  23.                                                 {
  24.                                                     string _pd_msg = this.check_Panel_Serial_Duplication_Portal();
  25.                                                     if (_pd_msg == "")
  26.                                                     {
  27.                                                         string _bd_msg = this.check_Battery_Serial_Duplication_Portal();
  28.                                                         if (_bd_msg == "")
  29.                                                         {
  30.                                                             string _pd_msg2 = _cm.check_Panel_Serial_No_DataHub(this.cb_SP_MANU_ID.SelectedValue.ToString(), this.cb_SP_MODEL_ID.SelectedValue.ToString(), Regex.Replace(this.txt_SP_SERIAL_NO.Text, @"\s", ""));
  31.                                                             if (_pd_msg2 == "")
  32.                                                             {
  33.                                                                 string _bd_msg2 = _cm.check_Battery_Serial_No_DataHub(this.cb_BT_MANU_ID.SelectedValue.ToString(), this.cb_BT_MODEL_ID.SelectedValue.ToString(), Regex.Replace(this.txt_BT_SERIAL_NO.Text, @"\s", ""));
  34.                                                                 if (_bd_msg2 == "")
  35.                                                                 {
  36.                                                                     int rCount = this.save_General();
  37.                                                                     if (rCount > 0)
  38.                                                                     {
  39.                                                                         rCount = 0;
  40.                                                                         rCount = this.save_Technical();
  41.                                                                         if (rCount > 0)
  42.                                                                         {
  43.                                                                             rCount = 0;
  44.                                                                             rCount = this.save_Investment();
  45.                                                                             if (rCount > 0)
  46.                                                                             {
  47.                                                                                 rCount = 0;
  48.                                                                                 rCount = this.save_Banking();
  49.                                                                                 if (rCount > 0)
  50.                                                                                 {
  51.                                                                                     rCount = 0;
  52.                                                                                     rCount = this.save_End_Use();
  53.                                                                                     if (rCount > 0)
  54.                                                                                     {
  55.                                                                                         this.display_Message(1);
  56.                                                                                     }
  57.                                                                                 }
  58.                                                                             }
  59.                                                                         }
  60.                                                                     }
  61.                                                                 }
  62.                                                                 else
  63.                                                                 {
  64.                                                                     this.d_Msg.Visible = true;
  65.                                                                     this.l_Msg.Text = _bd_msg2;
  66.                                                                 }
  67.                                                             }
  68.                                                             else
  69.                                                             {
  70.                                                                 this.d_Msg.Visible = true;
  71.                                                                 this.l_Msg.Text = _pd_msg2;
  72.                                                             }
  73.                                                         }
  74.                                                         else
  75.                                                         {
  76.                                                             this.d_Msg.Visible = true;
  77.                                                             this.l_Msg.Text = _bd_msg;
  78.                                                         }
  79.                                                     }
  80.                                                     else
  81.                                                     {
  82.                                                         this.d_Msg.Visible = true;
  83.                                                         this.l_Msg.Text = _pd_msg;
  84.                                                     }
  85.                                                 }
  86.                                                 else
  87.                                                 {
  88.                                                     this.d_Msg.Visible = true;
  89.                                                     this.l_Msg.Text = _ctz_dup_msg;
  90.                                                 }
  91.                                             }
  92.                                             else
  93.                                             {
  94.                                                 this.display_Message(3);
  95.                                             }
  96.                                         }
  97.                                         else
  98.                                         {
  99.                                             this.display_Message(6);
  100.                                         }
  101.                                     }
  102.                                     else
  103.                                     {
  104.                                         this.display_Message(3);
  105.                                     }
  106.                                 }
  107.                                 else
  108.                                 {
  109.                                     this.display_Message(10);
  110.                                 }
  111.                             }
  112.                             else
  113.                             {
  114.                                 this.display_Message(9);
  115.                             }
  116.                         }
  117.                         else
  118.                         {
  119.                             this.display_Message(7);
  120.                         }
  121.                     }
  122.                 }
  123.                 else
  124.                 {
  125.                     this.display_Message(8);
  126.                 }
  127.             }
  128.             catch (Exception)
  129.             {
  130.                 throw;
  131.             }
  132.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement