Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void save_Data()
- {
- try
- {
- if (_cm.check_Ceased(this.cb_SHS_ID.SelectedValue.ToString(), "SHS") == false)
- {
- if (this.check_Data() == true)
- {
- if (this.check_Installation_Date() == false)
- {
- if (this.check_System_Capacity() == true)
- {
- if (this.check_Battery_Ratio() == true)
- {
- if (_cm.check_Submitted(this.cb_SHS_ID.SelectedValue.ToString()) == false)
- {
- if (_cm.check_Rejected(this.cb_SHS_ID.SelectedValue.ToString()) == false)
- {
- if (_cm.check_Verified(this.cb_SHS_ID.SelectedValue.ToString()) == false)
- {
- 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)));
- if (_ctz_dup_msg == "")
- {
- string _pd_msg = this.check_Panel_Serial_Duplication_Portal();
- if (_pd_msg == "")
- {
- string _bd_msg = this.check_Battery_Serial_Duplication_Portal();
- if (_bd_msg == "")
- {
- 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", ""));
- if (_pd_msg2 == "")
- {
- 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", ""));
- if (_bd_msg2 == "")
- {
- int rCount = this.save_General();
- if (rCount > 0)
- {
- rCount = 0;
- rCount = this.save_Technical();
- if (rCount > 0)
- {
- rCount = 0;
- rCount = this.save_Investment();
- if (rCount > 0)
- {
- rCount = 0;
- rCount = this.save_Banking();
- if (rCount > 0)
- {
- rCount = 0;
- rCount = this.save_End_Use();
- if (rCount > 0)
- {
- this.display_Message(1);
- }
- }
- }
- }
- }
- }
- else
- {
- this.d_Msg.Visible = true;
- this.l_Msg.Text = _bd_msg2;
- }
- }
- else
- {
- this.d_Msg.Visible = true;
- this.l_Msg.Text = _pd_msg2;
- }
- }
- else
- {
- this.d_Msg.Visible = true;
- this.l_Msg.Text = _bd_msg;
- }
- }
- else
- {
- this.d_Msg.Visible = true;
- this.l_Msg.Text = _pd_msg;
- }
- }
- else
- {
- this.d_Msg.Visible = true;
- this.l_Msg.Text = _ctz_dup_msg;
- }
- }
- else
- {
- this.display_Message(3);
- }
- }
- else
- {
- this.display_Message(6);
- }
- }
- else
- {
- this.display_Message(3);
- }
- }
- else
- {
- this.display_Message(10);
- }
- }
- else
- {
- this.display_Message(9);
- }
- }
- else
- {
- this.display_Message(7);
- }
- }
- }
- else
- {
- this.display_Message(8);
- }
- }
- catch (Exception)
- {
- throw;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement