예제 #1
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            InitializedRecords();

            MultiAccFlag.Text      = "0";
            gvGroupAccInfo.Visible = false;



            int           atype;
            A2ZACCTYPEDTO getDTO = new A2ZACCTYPEDTO();

            atype  = Converter.GetInteger(txtAccType.Text);
            getDTO = (A2ZACCTYPEDTO.GetInformation(atype));


            if (getDTO.AccTypeCode > 0)
            {
                txtAccType.Text          = Converter.GetString(getDTO.AccTypeCode);
                CtrlAccType.Text         = Converter.GetString(getDTO.AccTypeCode);
                ddlAccType.SelectedValue = Converter.GetString(getDTO.AccTypeCode);

                PartyDropdown();
            }
            else
            {
                txtAccType.Text = string.Empty;
                txtAccType.Focus();
                ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid A/C Type');", true);
                return;
            }
        }
예제 #2
0
        protected void ddlAcType_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (ddlAcType.SelectedValue == "-Select-")
                {
                    txtAccType.Focus();
                    txtAccType.Text = string.Empty;
                }

                if (ddlAcType.SelectedValue != "-Select-")
                {
                    Int16         MainCode = Converter.GetSmallInteger(ddlAcType.SelectedValue);
                    A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));
                    if (getDTO.AccTypeCode > 0)
                    {
                        txtAccType.Text       = Converter.GetString(getDTO.AccTypeCode);
                        lblAccTypeClass.Text  = Converter.GetString(getDTO.AccTypeClass);
                        lblAccAccessFlag.Text = Converter.GetString(getDTO.AccAccessFlag);
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.ddlAcType_SelectedIndexChanged Problem');</script>");
                //throw ex;
            }
        }
예제 #3
0
        protected void ddlAcType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlAcType.SelectedValue == "-Select-")
            {
                txtAccType.Focus();
                clearinfo();
                BtnSubmit.Visible = true;
                BtnUpdate.Visible = false;
            }
            if (ddlAcType.SelectedValue != "-Select-")
            {
                Int16         MainCode = Converter.GetSmallInteger(ddlAcType.SelectedValue);
                A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                if (getDTO.AccTypeCode > 0)
                {
                    txtAccType.Text = Converter.GetString(getDTO.AccTypeCode);
                    lblclass.Text   = Converter.GetString(getDTO.AccTypeClass);
                    lblTypeDes.Text = Converter.GetString(getDTO.AccTypeDescription);
                    PayTypedropdown();
                }
                else
                {
                    txtAccType.Focus();
                    txtAccType.Text = string.Empty;
                    lblclass.Text   = string.Empty;
                }
            }
        }
예제 #4
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (txtAccType.Text != string.Empty)
                {
                    Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
                    A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                    if (getDTO.AccTypeCode > 0)
                    {
                        if (getDTO.AccTypeClass != 5 && getDTO.AccTypeClass != 6 && getDTO.AccTypeClass != 8)
                        {
                            txtAccType.Text = string.Empty;
                            txtAccType.Focus();
                            return;
                        }

                        txtAccType.Text         = Converter.GetString(getDTO.AccTypeCode);
                        ddlAcType.SelectedValue = Converter.GetString(getDTO.AccTypeCode);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        protected void ddlIAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                Int16         AccType = Converter.GetSmallInteger(ddlIAccType.SelectedValue);
                A2ZACCTYPEDTO get1DTO = (A2ZACCTYPEDTO.GetInformation(AccType));
                if (get1DTO.AccTypeCode > 0)
                {
                    txtAccType.Text      = Converter.GetString(get1DTO.AccTypeCode);
                    lblAccTypeClass.Text = Converter.GetString(get1DTO.AccTypeClass);


                    FindAccountNo();
                    if (MSGFlag.Text == "1")
                    {
                        AccountNotExistsMSG();

                        txtAccType.Text           = string.Empty;
                        ddlIAccType.SelectedIndex = 0;

                        txtAccType.Focus();
                        return;
                    }
                }
            }

            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.txtAccType_TextChanged Problem');</script>");
                //throw ex;
            }
        }
예제 #6
0
        protected void ddlAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            txtAccType.Text = ddlAccType.SelectedValue;


            int           atype;
            A2ZACCTYPEDTO getDTO = new A2ZACCTYPEDTO();


            atype  = Converter.GetInteger(txtAccType.Text);
            getDTO = (A2ZACCTYPEDTO.GetInformation(atype));


            if (getDTO.AccTypeCode > 0)
            {
                txtAccType.Text  = Converter.GetString(getDTO.AccTypeCode);
                CtrlAccType.Text = Converter.GetString(getDTO.AccTypeCode);
            }
            else
            {
                txtAccType.Text = string.Empty;
                txtAccType.Focus();
                ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid A/C Type');", true);
                return;
            }
        }
예제 #7
0
        protected void ddlTranCode_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (ddlTranCode.SelectedValue != "-Select-")
                {
                    int           MainCode = Converter.GetInteger(ddlTranCode.SelectedValue);
                    A2ZTRNCODEDTO getDTO   = (A2ZTRNCODEDTO.GetInformation(MainCode));
                    if (getDTO.TrnCode > 0)
                    {
                        lblAccType.Text     = Converter.GetString(getDTO.AccType);
                        lblAccTypeMode.Text = Converter.GetString(getDTO.AccTypeMode);
                        txtTrncode.Text     = Converter.GetString(getDTO.TrnCode);

                        Int16         AccType = Converter.GetSmallInteger(lblAccType.Text);
                        A2ZACCTYPEDTO get1DTO = (A2ZACCTYPEDTO.GetInformation(AccType));
                        if (get1DTO.AccTypeCode > 0)
                        {
                            lblClass.Text = Converter.GetString(get1DTO.AccTypeClass);
                            PayTypedropdown();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #8
0
        protected void ddlAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlAccType.SelectedValue == "-Select-")
            {
                txtAccType.Text = string.Empty;
                txtAccType.Focus();
            }
            if (ddlAccType.SelectedValue != "-Select-")
            {
                Int16         MainCode = Converter.GetSmallInteger(ddlAccType.SelectedValue);
                A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                if (getDTO.AccTypeCode > 0)
                {
                    txtAccType.Text = Converter.GetString(getDTO.AccTypeCode);
                }
                else
                {
                    txtAccType.Text = string.Empty;
                }
                //   string qry = "SELECT AccNo,AccNo FROM A2ZACCOUNT WHERE AccType = '" + txtAccType.Text + "'";
                //   DataTable dt = DataAccessLayer.BLL.CommonManager.Instance.GetDataTableByQuery(qry, "A2ZCSMCUS");
                //   if (dt.Rows.Count > 0)

                Int16 Acctype   = Converter.GetSmallInteger(txtAccType.Text);
                Int64 AccNumber = Converter.GetLong(txtAccNo.Text);
                Int16 CuType    = 0;
                int   CUnumber  = 0;
                int   MemNumber = Converter.GetInteger(txtMemNo.Text);


                A2ZACCOUNTDTO accgetDTO = (A2ZACCOUNTDTO.GetInformation(Acctype, AccNumber, CuType, CUnumber, MemNumber));

                if (accgetDTO.a > 0)
                {
                    txtAccNo.Text = Converter.GetString(accgetDTO.AccNo);
                }

                else
                {
                    String csname1         = "PopupScript";
                    Type   cstype          = GetType();
                    ClientScriptManager cs = Page.ClientScript;

                    if (!cs.IsStartupScriptRegistered(cstype, csname1))
                    {
                        String cstext1 = "alert('Account Does Not Exist');";
                        cs.RegisterStartupScript(cstype, csname1, cstext1, true);
                    }

                    txtAccType.Text = string.Empty;
                    txtAccType.Focus();

                    return;
                }
            }
        }
예제 #9
0
        protected void ddlAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            Int16         AccType = Converter.GetSmallInteger(ddlAccType.SelectedValue);
            A2ZACCTYPEDTO get1DTO = (A2ZACCTYPEDTO.GetInformation(AccType));

            if (get1DTO.AccTypeCode > 0)
            {
                hdnAccTypeClass.Text = Converter.GetString(get1DTO.AccTypeClass);
            }


            ValidationProcess();
        }
예제 #10
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            if (txtAccType.Text != string.Empty)
            {
                Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
                A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                if (getDTO.AccTypeCode > 0)
                {
                    ddlAccType.SelectedValue = Converter.GetString(getDTO.AccTypeCode);
                }
                else
                {
                    ddlAccType.SelectedValue = "-Select-";
                }

                Int16 Acctype   = Converter.GetSmallInteger(txtAccType.Text);
                Int64 AccNumber = Converter.GetLong(txtAccNo.Text);
                Int16 CuType    = 0;
                int   CUnumber  = 0;
                int   MemNumber = Converter.GetInteger(txtMemNo.Text);


                A2ZACCOUNTDTO accgetDTO = (A2ZACCOUNTDTO.GetInformation(Acctype, AccNumber, CuType, CUnumber, MemNumber));

                if (accgetDTO.a > 0)
                {
                    txtAccNo.Text = Converter.GetString(accgetDTO.AccNo);
                }



                else
                {
                    String csname1         = "PopupScript";
                    Type   cstype          = GetType();
                    ClientScriptManager cs = Page.ClientScript;

                    if (!cs.IsStartupScriptRegistered(cstype, csname1))
                    {
                        String cstext1 = "alert('Account Does Not Exist');";
                        cs.RegisterStartupScript(cstype, csname1, cstext1, true);
                    }

                    txtAccType.Text = string.Empty;
                    txtAccType.Focus();

                    return;
                }
            }
        }
예제 #11
0
        protected void ddlAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            txtLoanMemNo.Text          = string.Empty;
            ddlLoanMemNo.SelectedIndex = 0;


            if (ddlAccType.SelectedValue != "-Select-")
            {
                Int16         MainCode = Converter.GetSmallInteger(ddlAccType.SelectedValue);
                A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                if (getDTO.AccTypeCode > 0)
                {
                    lblTypeCls.Text     = Converter.GetString(getDTO.AccTypeClass);
                    lblAccTypeMode.Text = Converter.GetString(getDTO.AccTypeMode);
                    txtLoanMemNo.Focus();
                }

                if (lblTypeCls.Text == "5")
                {
                    txtNoInstallment.Visible = false;

                    txtLoanInstallmentAmount.Visible = false;
                    txtLoanLastInstlAmount.Visible   = false;

                    lblNoInstallment.Visible = false;

                    lblLoanInstallmentAmount.Visible = false;
                    lblLoanLastInstlAmount.Visible   = false;

                    lblLoanStatDate.Visible = false;
                    txtLoanExpDate.Visible  = false;
                }
                else
                {
                    txtNoInstallment.Visible = true;

                    txtLoanInstallmentAmount.Visible = true;
                    txtLoanLastInstlAmount.Visible   = true;

                    lblNoInstallment.Visible = true;

                    lblLoanInstallmentAmount.Visible = true;
                    lblLoanLastInstlAmount.Visible   = true;

                    lblLoanStatDate.Visible = true;
                    txtLoanExpDate.Visible  = true;
                }
            }
        }
예제 #12
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            if (txtPartyCode.Text == string.Empty)
            {
                txtPartyCode.Focus();
                ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Please Input Party Code');", true);
                return;
            }

            MultiAccFlag.Text      = "0";
            gvGroupAccInfo.Visible = false;



            int           atype;
            A2ZACCTYPEDTO getDTO = new A2ZACCTYPEDTO();

            atype  = Converter.GetInteger(txtAccType.Text);
            getDTO = (A2ZACCTYPEDTO.GetInformation(atype));


            if (getDTO.AccTypeCode > 0)
            {
                txtAccType.Text          = Converter.GetString(getDTO.AccTypeCode);
                CtrlAccType.Text         = Converter.GetString(getDTO.AccTypeCode);
                ddlAccType.SelectedValue = Converter.GetString(getDTO.AccTypeCode);


                FindAccountNo();
                if (MSGFlag.Text == "1")
                {
                    ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Account Not In File');", true);
                    txtAccType.Text          = string.Empty;
                    ddlAccType.SelectedIndex = 0;
                    txtAccountNo.Text        = string.Empty;
                    txtAccountNo.Visible     = true;
                    txtAccType.Focus();
                    return;
                }
            }
            else
            {
                txtAccType.Text = string.Empty;
                txtAccType.Focus();
                ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid A/C Type');", true);
                return;
            }
        }
예제 #13
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (ddlAccType.SelectedValue == "-Select-")
                {
                }

                if (txtAccType.Text != string.Empty && ddlCreditUNo.SelectedValue != "-Select-")
                {
                    Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
                    A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                    if (getDTO.AccTypeCode > 0)
                    {
                        lblTypeCls.Text = Converter.GetString(getDTO.AccTypeClass);

                        lblAccTypeMode.Text = Converter.GetString(getDTO.AccTypeMode);


                        if ((lblTypeCls.Text != "5" && lblTypeCls.Text != "6") || lblAccTypeMode.Text == "2")
                        {
                            txtAccType.Text = string.Empty;
                            txtAccType.Focus();
                            ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid Account Type');", true);
                            return;
                        }
                        else
                        {
                            ddlAccType.SelectedValue = txtAccType.Text;
                            return;
                        }
                    }
                    else
                    {
                        txtAccType.Text = string.Empty;
                        txtAccType.Focus();
                        ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Account Type Not Found');", true);
                        return;
                    }
                }
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }
        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                A2ZACCTYPEDTO objDTO = new A2ZACCTYPEDTO();

                objDTO.AccTypeCode        = Converter.GetSmallInteger(txtcode.Text);
                objDTO.AccTypeDescription = Converter.GetString(txtDescription.Text);
                objDTO.AccTypeClass       = Converter.GetSmallInteger(ddlAccTypeClass.SelectedValue);
                objDTO.AccFlag            = Converter.GetSmallInteger(ddlAccFlag.SelectedValue);
                objDTO.AccTypeMode        = Converter.GetSmallInteger(ddlAccTypeMode.SelectedValue);
                objDTO.AccDepRoundingBy   = Converter.GetDecimal(txtDepRoundingBy.Text);
                objDTO.AccCertNo          = Converter.GetSmallInteger(lblchkCertNo.Text);
                objDTO.AccAccessFlag      = Converter.GetSmallInteger(lblchkAccessHR.Text);

                objDTO.AccessT1 = Converter.GetSmallInteger(lblchk1Hide.Text);
                objDTO.AccessT2 = Converter.GetSmallInteger(lblchk2Hide.Text);
                objDTO.AccessT3 = Converter.GetSmallInteger(lblchk3Hide.Text);


                objDTO.AccTypeGuaranty = Converter.GetSmallInteger(ddlGAccType.SelectedValue);



                objDTO.AccCorrType = Converter.GetInteger(ddlCorrAccType.SelectedValue);


                int roweffect = A2ZACCTYPEDTO.InsertInformation(objDTO);
                if (roweffect > 0)
                {
                    gvDetail();
                    txtcode.Focus();
                    clearinfo();
                    dropdown();
                    chkAccCertNo.Checked = false;
                    chkAccessHR.Checked  = false;
                    chkAccess1.Checked   = false;
                    chkAccess2.Checked   = false;
                    chkAccess3.Checked   = false;
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.BtnSubmit_Click Problem');</script>");
                //throw ex;
            }
        }
예제 #15
0
        protected void ddlAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            Int16         AccType = Converter.GetSmallInteger(ddlAccType.SelectedValue);
            A2ZACCTYPEDTO get1DTO = (A2ZACCTYPEDTO.GetInformation(AccType));

            if (get1DTO.AccTypeCode > 0)
            {
                hdnAccTypeClass.Text = Converter.GetString(get1DTO.AccTypeClass);

                Int16         AType   = Converter.GetSmallInteger(ddlAccType.SelectedValue);
                A2ZCSPARAMDTO get2DTO = (A2ZCSPARAMDTO.GetInformation(AType));
                if (get2DTO.AccType > 0)
                {
                    if (ddlAccType.SelectedValue == "12")
                    {
                        EnableRecords();

                        txtMonth1.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                        txtMonth2.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                        txtMonth3.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                        txtMonth4.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                        txtMonth5.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                        txtMonth6.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                    }
                    else
                    {
                        DisableRecords();
                        txtMonth1.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                    }
                }
            }


            if (ddlAccType.SelectedValue != "12")
            {
                ValidationProcess3();
            }
            else if (lblCurrMth.Text == "12")
            {
                ValidationProcess1();
            }
            else if (lblCurrMth.Text == "6")
            {
                ValidationProcess2();
            }
        }
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            if (txtAccType.Text != string.Empty)
            {
                Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
                A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                if (getDTO.AccTypeCode > 0)
                {
                    txtAccType.Text      = Converter.GetString(getDTO.AccTypeCode);
                    lblAccTypeClass.Text = Converter.GetString(getDTO.AccTypeClass);
                    lblIAccTypeMode.Text = Converter.GetString(getDTO.AccTypeMode);

                    if (lblAccTypeClass.Text == "6" && lblIAccTypeMode.Text == "2")
                    {
                        ddlIAccType.SelectedValue = Converter.GetString(getDTO.AccTypeCode);

                        FindAccountNo();
                        if (MSGFlag.Text == "1")
                        {
                            AccountNotExistsMSG();

                            txtAccType.Text           = string.Empty;
                            ddlIAccType.SelectedIndex = 0;

                            txtAccType.Focus();
                            return;
                        }
                    }
                    else
                    {
                        txtAccType.Text = string.Empty;
                        txtAccType.Focus();
                        ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid Account Type');", true);
                        return;
                    }
                }
                else
                {
                    txtAccType.Text = string.Empty;
                    txtAccType.Focus();
                    ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid Account Type');", true);
                    return;
                }
            }
        }
예제 #17
0
        protected void ddlAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            txtAccType.Text = ddlAccType.SelectedValue;

            InitializedRecords();

            int           atype;
            A2ZACCTYPEDTO getDTO = new A2ZACCTYPEDTO();


            atype  = Converter.GetInteger(txtAccType.Text);
            getDTO = (A2ZACCTYPEDTO.GetInformation(atype));


            if (getDTO.AccTypeCode > 0)
            {
                txtAccType.Text  = Converter.GetString(getDTO.AccTypeCode);
                CtrlAccType.Text = Converter.GetString(getDTO.AccTypeCode);

                PartyDropdown();

                //MultiAccFlag.Text = "0";
                //gvGroupAccInfo.Visible = false;

                //FindAccountNo();
                //if (MSGFlag.Text == "1")
                //{
                //    ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Account Not In File');", true);
                //    txtAccType.Text = string.Empty;
                //    ddlAccType.SelectedIndex = 0;
                //    txtAccountNo.Text = string.Empty;
                //    txtAccountNo.Visible = true;
                //    txtAccType.Focus();
                //    return;
                //}
            }
            else
            {
                txtAccType.Text = string.Empty;
                txtAccType.Focus();
                ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid A/C Type');", true);
                return;
            }
        }
예제 #18
0
        protected void ddlAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            Int16         AccType = Converter.GetSmallInteger(ddlAccType.SelectedValue);
            A2ZACCTYPEDTO get1DTO = (A2ZACCTYPEDTO.GetInformation(AccType));

            if (get1DTO.AccTypeCode > 0)
            {
                hdnAccTypeClass.Text = Converter.GetString(get1DTO.AccTypeClass);

                Int16         AType   = Converter.GetSmallInteger(ddlAccType.SelectedValue);
                A2ZCSPARAMDTO get2DTO = (A2ZCSPARAMDTO.GetInformation(AType));
                if (get2DTO.AccType > 0)
                {
                    txtIntRate.Text = Converter.GetString(String.Format("{0:0,0.00}", get2DTO.InterestRate));
                }
            }

            ValidationProcess();
        }
예제 #19
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            try
            {
                Int16         AccType = Converter.GetSmallInteger(txtAccType.Text);
                A2ZACCTYPEDTO get1DTO = (A2ZACCTYPEDTO.GetInformation(AccType));
                if (get1DTO.AccTypeCode > 0)
                {
                    txtAccType.Text      = Converter.GetString(get1DTO.AccTypeCode);
                    lblAccTypeClass.Text = Converter.GetString(get1DTO.AccTypeClass);
                    lblAccFlag.Text      = Converter.GetString(get1DTO.AccFlag);

                    lblAccessType1.Text = Converter.GetString(get1DTO.AccessT1);
                    lblAccessType2.Text = Converter.GetString(get1DTO.AccessT2);
                    lblAccessType3.Text = Converter.GetString(get1DTO.AccessT3);
                }
                string    qry = "SELECT Id,AccNo FROM A2ZACCOUNT where CuType='" + lblCuType.Text + "' and CuNo='" + lblCuNo.Text + "' and MemNo='" + txtMemNo.Text + "' and AccType='" + txtAccType.Text + "' and AccStatus < 98";
                DataTable dt  = DataAccessLayer.BLL.CommonManager.Instance.GetDataTableByQuery(qry, "A2ZCSMCUS");
                if (dt.Rows.Count > 0)
                {
                    txtAccNo.Text          = Converter.GetString(dt.Rows[0]["AccNo"]);
                    ddlAccNo.SelectedValue = Converter.GetString(dt.Rows[0]["AccNo"]);
                    AccountNoDropdown();
                    txtTrnCuNo.Focus();
                }
                else
                {
                    InvalidAccount();
                    txtAccType.Text = string.Empty;
                    txtAccType.Focus();
                }
            }

            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.txtAccType_TextChanged Problem');</script>");
                //throw ex;
            }
        }
예제 #20
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (txtAccType.Text != string.Empty)
                {
                    Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
                    A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                    if (getDTO.AccTypeCode > 0)
                    {
                        lblAccTypeMode.Text   = Converter.GetString(getDTO.AccTypeMode);
                        lblAccTypeClass.Text  = Converter.GetString(getDTO.AccTypeClass);
                        lblAccAccessFlag.Text = Converter.GetString(getDTO.AccAccessFlag);
                        if ((lblModule.Text == "1" || lblModule.Text == "6" || lblModule.Text == "7") && lblAccTypeMode.Text == "2")
                        {
                            InvalidAccTypeMSG();
                            txtAccType.Focus();
                            return;
                        }

                        if (lblAccTypeClass.Text != "5")
                        {
                            InvalidAccTypeMSG();
                            txtAccType.Focus();
                            return;
                        }
                        txtAccType.Text         = Converter.GetString(getDTO.AccTypeCode);
                        ddlAcType.SelectedValue = Converter.GetString(getDTO.AccTypeCode);
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.txtAccType_TextChanged Problem');</script>");
                //throw ex;
            }
        }
예제 #21
0
 protected void ddlAcType_SelectedIndexChanged(object sender, EventArgs e)
 {
     //if (ddlAcType.SelectedValue == "-Select-")
     //{
     //    txtAccType.Focus();
     //    txtAccType.Text = string.Empty;
     //}
     try
     {
         if (ddlAcType.SelectedValue != "-Select-")
         {
             Int16         MainCode = Converter.GetSmallInteger(ddlAcType.SelectedValue);
             A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));
             if (getDTO.AccTypeCode > 0)
             {
                 txtAccType.Text = Converter.GetString(getDTO.AccTypeCode);
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
            A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

            if (getDTO.AccTypeCode > 0)
            {
                lblAccTypeMode.Text = Converter.GetString(getDTO.AccTypeMode);

                if (txtAccType.Text == "99")
                {
                    lblPayType.Visible = true;
                    txtPaytype.Visible = true;
                    ddlpaytype.Visible = true;
                }
            }
            else
            {
                InvalidAccType();
                txtAccType.Text = string.Empty;
                txtAccType.Focus();
                return;
            }
        }
예제 #23
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (txtAccType.Text != string.Empty)
                {
                    Int16 MainCode = Converter.GetSmallInteger(txtAccType.Text);

                    A2ZACCTYPEDTO getDTO = (A2ZACCTYPEDTO.GetInformation(MainCode));

                    if (getDTO.AccTypeCode > 0)
                    {
                        txtAccType.Text         = Converter.GetString(getDTO.AccTypeCode);
                        ddlAcType.SelectedValue = Converter.GetString(getDTO.AccTypeCode);
                        lblclass.Text           = Converter.GetString(getDTO.AccTypeClass);
                        lblTypeDes.Text         = Converter.GetString(getDTO.AccTypeDescription);
                        PayTypedropdown();
                    }
                    else
                    {
                        ddlFunctionOpt.SelectedValue = "0";
                        //   ddlPayType.SelectedValue = "-Select-";
                        ddlTrnType.SelectedValue      = "0";
                        ddlTrnMode.SelectedValue      = "0";
                        ddlTranAmtLogic.SelectedIndex = 0;
                        ddlAcType.SelectedValue       = "-Select-";
                        lblclass.Text = string.Empty;
                    }
                }
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #24
0
        public void GetAccInfo()
        {
            try
            {
                Int64         AccNumber = Converter.GetLong(txtAccNo.Text);
                A2ZACCOUNTDTO accgetDTO = (A2ZACCOUNTDTO.GetInfoAccNo(AccNumber));
                if (accgetDTO.a == 0)
                {
                    InvalidAccMSG();
                    txtAccNo.Text = string.Empty;
                    txtAccNo.Focus();
                    return;
                }
                else
                {
                    lblAccBalance.Text    = Converter.GetString(String.Format("{0:0,0.00}", accgetDTO.AccBalance));
                    lblBalance.Text       = Converter.GetString(String.Format("{0:0,0.00}", accgetDTO.AccBalance));
                    lblBalLienAmount.Text = Converter.GetString(String.Format("{0:0,0.00}", accgetDTO.AccLienAmt));
                    lblStatP.Text         = Converter.GetString(accgetDTO.AccStatus);

                    DateTime dt   = Converter.GetDateTime(accgetDTO.AccStatusDate);
                    string   date = dt.ToString("dd/MM/yyyy");
                    lblCurrRef.Text = Converter.GetString(accgetDTO.AccStatusNote);

                    if (lblStatP.Text == "98")
                    {
                        txtAccNo.Text = string.Empty;
                        txtAccNo.Focus();
                        InvalidAccStatusChg();
                        return;
                    }

                    if (lblStatP.Text == "50")
                    {
                        lblBalLien.Visible       = true;
                        lblBalLienAmount.Visible = true;
                    }



                    if (date == "01/01/0001")
                    {
                        lblCurrStatDt.Text = string.Empty;
                    }
                    else
                    {
                        lblCurrStatDt.Text = date;
                    }
                    string    qry1 = "SELECT AccStatusDescription FROM A2ZACCSTATUS where AccStatusCode='" + lblStatP.Text + "'";
                    DataTable dt1  = DataAccessLayer.BLL.CommonManager.Instance.GetDataTableByQuery(qry1, "A2ZCSMCUS");
                    if (dt1.Rows.Count > 0)
                    {
                        lblCurrStatus.Text = Converter.GetString(dt1.Rows[0]["AccStatusDescription"]);
                    }


                    lblCuType.Text = Converter.GetString(accgetDTO.CuType);
                    lblCuNo.Text   = Converter.GetString(accgetDTO.CuNo);

                    txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);


                    txtMemNo.Text = Converter.GetString(accgetDTO.MemberNo);

                    CtrlAccType.Text = Converter.GetString(accgetDTO.AccType);

                    lblcls.Text = Converter.GetString(accgetDTO.AccAtyClass);


                    Int16         AccType = Converter.GetSmallInteger(CtrlAccType.Text);
                    A2ZACCTYPEDTO get3DTO = (A2ZACCTYPEDTO.GetInformation(AccType));
                    if (get3DTO.AccTypeCode > 0)
                    {
                        lblAccTitle.Text = Converter.GetString(get3DTO.AccTypeDescription);
                    }

                    Int16        CType   = Converter.GetSmallInteger(lblCuType.Text);
                    int          CNo     = Converter.GetInteger(lblCuNo.Text);
                    A2ZCUNIONDTO get5DTO = (A2ZCUNIONDTO.GetInformation(CType, CNo));
                    if (get5DTO.NoRecord > 0)
                    {
                        lblCuName.Text = Converter.GetString(get5DTO.CreditUnionName);
                    }

                    Int16        CUType  = Converter.GetSmallInteger(lblCuType.Text);
                    int          CUNo    = Converter.GetInteger(lblCuNo.Text);
                    int          MNo     = Converter.GetInteger(txtMemNo.Text);
                    A2ZMEMBERDTO get6DTO = (A2ZMEMBERDTO.GetInformation(CUType, CUNo, MNo));
                    if (get6DTO.NoRecord > 0)
                    {
                        lblMemName.Text = Converter.GetString(get6DTO.MemberName);
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.GetAccInfo Problem');</script>");
                //throw ex;
            }
        }
예제 #25
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (txtAccType.Text != string.Empty)
                {
                    Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
                    A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                    if (getDTO.AccTypeCode > 0)
                    {
                        txtAccType.Text          = Converter.GetString(getDTO.AccTypeCode);
                        ddlAccount.SelectedValue = Converter.GetString(getDTO.AccTypeCode);
                        txtAccType.Focus();
                    }
                    else
                    {
                        ddlAccount.SelectedValue = "-Select-";
                        ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('This Account Code Does not Exist in file');", true);

                        //String csname1 = "PopupScript";
                        //Type cstype = GetType();
                        //ClientScriptManager cs = Page.ClientScript;

                        //if (!cs.IsStartupScriptRegistered(cstype, csname1))
                        //{
                        //    String cstext1 = "alert('This Account Code Does not Exist in file');";
                        //    cs.RegisterStartupScript(cstype, csname1, cstext1, true);
                        txtAccType.Focus();
                        gvDescription.Visible        = true;
                        gvDetails.Visible            = false;
                        BtnAccountOpenSubmit.Visible = true;
                        btnAccountUpdate.Visible     = false;

                        //}
                        return;
                    }
                }


                if (txtAccType.Text != string.Empty)
                {
                    Int16  code     = Converter.GetSmallInteger(txtAccType.Text);
                    string sqlquery = "SELECT ProductCode, RecordCode,Description from A2ZACCCTRL where ProductCode='" + code + "'and ControlCode='1'";
                    gvDetails = DataAccessLayer.BLL.CommonManager.Instance.FillGridViewList(sqlquery, gvDetails, "A2ZCSMCUS");
                    A2ZACCCTRLDTO getDTO = new A2ZACCCTRLDTO();
                    for (int i = 0; i < gvDetails.Rows.Count; i++)
                    {
                        //Int16 pcode = Converter.GetSmallInteger(txtProductCode.Text);
                        Int16 rcode = Converter.GetSmallInteger(gvDetails.Rows[i].Cells[0].Text);
                        Int16 ccode = 1;
                        getDTO = (A2ZACCCTRLDTO.GetInformation(code, ccode, rcode));
                        if (getDTO.ProductCode > 0 && getDTO.RecordCode > 0)
                        {
                            Label4.Text = Converter.GetString(getDTO.RecordFlag);
                            Label5.Text = Converter.GetString(getDTO.FuncFlag);
                            ddlAccount.SelectedValue     = Converter.GetString(getDTO.ProductCode);
                            BtnAccountOpenSubmit.Visible = false;
                            btnAccountUpdate.Visible     = true;
                            gvDescription.Visible        = false;
                            gvDetails.Visible            = true;
                            ddlAccount.Focus();
                        }
                        //else
                        //{

                        //    ddlAccount.SelectedValue = "-Select-";
                        //    gvDescription.Visible = true;
                        //    gvDetails.Visible = false;
                        //    BtnAccountOpenSubmit.Visible = true;
                        //    btnAccountUpdate.Visible = false;


                        //}


                        CheckBox chk  = (CheckBox)gvDetails.Rows[i].Cells[0].FindControl("chkUpdate");
                        CheckBox chk1 = (CheckBox)gvDetails.Rows[i].Cells[0].FindControl("chk1Update");

                        if (Label4.Text == "1")
                        {
                            chk.Checked = true;
                        }
                        else
                        {
                            chk.Checked = false;
                        }
                        if (Label5.Text == "1")
                        {
                            chk1.Checked = true;
                        }
                        else
                        {
                            chk1.Checked = false;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.txtAccType_TextChanged Problem');</script>");

                //throw ex;
            }
        }
예제 #26
0
        protected void ddlAccount_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlAccount.SelectedValue != "-Select-")
            {
                Int16         MainCode = Converter.GetSmallInteger(ddlAccount.SelectedValue);
                A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));
                if (getDTO.AccTypeCode > 0)
                {
                    txtAccType.Text = Converter.GetString(getDTO.AccTypeCode);
                    txtAccType.Focus();
                    gvDescription.Visible        = true;
                    gvDetails.Visible            = false;
                    BtnAccountOpenSubmit.Visible = true;
                    btnAccountUpdate.Visible     = false;
                }
            }

            if (ddlAccount.SelectedValue == "-Select-")
            {
                gvDescription.Visible        = true;
                gvDetails.Visible            = false;
                BtnAccountOpenSubmit.Visible = true;
                btnAccountUpdate.Visible     = false;
                txtAccType.Text = string.Empty;
                txtAccType.Focus();
            }
            try
            {
                if (ddlAccount.SelectedValue != "-Select-")
                {
                    Int16 code  = Converter.GetSmallInteger(ddlAccount.SelectedValue);
                    Int16 ccode = 2;

                    //string sqlquery = "SELECT ProductCode, RecordCode,Description from A2ZACCCTRL where ProductCode='" + code + "' and ControlCode='2'";
                    //gvDetails = DataAccessLayer.BLL.CommonManager.Instance.FillGridViewList(sqlquery, gvDetails, "A2ZCSMCUS");



                    for (int i = 0; i < gvDescription.Rows.Count; i++)
                    {
                        A2ZACCCTRLDTO getDTO = new A2ZACCCTRLDTO();
                        //Int16 pcode = Converter.GetSmallInteger(ddlAccount.SelectedValue);
                        Int16 rcode = Converter.GetSmallInteger(gvDescription.Rows[i].Cells[0].Text);
                        getDTO = (A2ZACCCTRLDTO.GetInformation(code, ccode, rcode));
                        if (getDTO.ProductCode > 0 && getDTO.RecordCode > 0)
                        {
                            Label4.Text     = Converter.GetString(getDTO.RecordFlag);
                            txtAccType.Text = Converter.GetString(code);
                            //gvDescription.Visible = false;
                            //gvDetails.Visible = true;
                            BtnAccountOpenSubmit.Visible = false;
                            btnAccountUpdate.Visible     = true;

                            CheckBox chk = (CheckBox)gvDescription.Rows[i].Cells[0].FindControl("chkDescription");

                            if (Label4.Text == "1")
                            {
                                chk.Checked = true;
                            }
                            else
                            {
                                chk.Checked = false;
                            }
                        }

                        else
                        {
                            CheckBox chk = (CheckBox)gvDescription.Rows[i].Cells[0].FindControl("chkDescription");
                            chk.Checked = false;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #27
0
        protected void txtAccType_TextChanged(object sender, EventArgs e)
        {
            if (txtAccType.Text != string.Empty)
            {
                Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
                A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

                if (getDTO.AccTypeCode > 0)
                {
                    txtAccType.Text          = Converter.GetString(getDTO.AccTypeCode);
                    ddlAccount.SelectedValue = Converter.GetString(getDTO.AccTypeCode);
                    txtAccType.Focus();
                }
                else
                {
                    ddlAccount.SelectedValue = "-Select-";
                    String csname1         = "PopupScript";
                    Type   cstype          = GetType();
                    ClientScriptManager cs = Page.ClientScript;

                    if (!cs.IsStartupScriptRegistered(cstype, csname1))
                    {
                        String cstext1 = "alert('This Account Code Does not Exist in file');";
                        cs.RegisterStartupScript(cstype, csname1, cstext1, true);
                        txtAccType.Focus();
                        gvDescription.Visible        = true;
                        gvDetails.Visible            = false;
                        BtnAccountOpenSubmit.Visible = true;
                        btnAccountUpdate.Visible     = false;
                    }
                    return;
                }
            }

            if (txtAccType.Text != string.Empty)
            {
                Int16 code = Converter.GetSmallInteger(txtAccType.Text);
                //string sqlquery = "SELECT ProductCode, RecordCode,Description from A2ZACCCTRL where ProductCode='" + code + "'and ControlCode='2'";
                //gvDetails = DataAccessLayer.BLL.CommonManager.Instance.FillGridViewList(sqlquery, gvDetails, "A2ZCSMCUS");

                A2ZACCCTRLDTO getDTO = new A2ZACCCTRLDTO();
                for (int i = 0; i < gvDescription.Rows.Count; i++)
                {
                    //Int16 pcode = Converter.GetSmallInteger(txtProductCode.Text);
                    Int16 rcode = Converter.GetSmallInteger(gvDescription.Rows[i].Cells[0].Text);
                    Int16 ccode = 2;
                    getDTO = (A2ZACCCTRLDTO.GetInformation(code, ccode, rcode));
                    if (getDTO.ProductCode > 0 && getDTO.RecordCode > 0)
                    {
                        Label4.Text = Converter.GetString(getDTO.RecordFlag);
                        ddlAccount.SelectedValue     = Converter.GetString(getDTO.ProductCode);
                        BtnAccountOpenSubmit.Visible = false;
                        btnAccountUpdate.Visible     = true;
                        //gvDescription.Visible = false;
                        //gvDetails.Visible = true;
                        ddlAccount.Focus();

                        CheckBox chk = (CheckBox)gvDescription.Rows[i].Cells[0].FindControl("chkDescription");

                        if (Label4.Text == "1")
                        {
                            chk.Checked = true;
                        }
                        else
                        {
                            chk.Checked = false;
                        }
                    }

                    else
                    {
                        CheckBox chk = (CheckBox)gvDescription.Rows[i].Cells[0].FindControl("chkDescription");
                        chk.Checked = false;
                    }
                }
            }
        }
        protected void ddlAcType_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (ddlAcType.SelectedValue == "-Select-")
                {
                    txtAccType.Focus();
                    txtAccType.Text = string.Empty;
                }

                if (ddlAcType.SelectedValue != "-Select-")
                {
                    Int16         MainCode = Converter.GetSmallInteger(ddlAcType.SelectedValue);
                    A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));
                    if (getDTO.AccTypeCode > 0)
                    {
                        txtAccType.Text       = Converter.GetString(getDTO.AccTypeCode);
                        lblAccTypeClass.Text  = Converter.GetString(getDTO.AccTypeClass);
                        lblAccAccessFlag.Text = Converter.GetString(getDTO.AccAccessFlag);

                        if (lblAccTypeClass.Text == "7")
                        {
                            ChkAllCode.Visible  = true;
                            lblCodeType.Visible = true;
                            txtCodeType.Visible = true;
                            ddlCodeType.Visible = true;
                            ChkAllCode.Checked  = true;
                            txtCodeType.Enabled = false;
                            ddlCodeType.Enabled = false;
                            CodeTypedropdown();
                        }
                        else
                        {
                            ChkAllCode.Visible  = false;
                            lblCodeType.Visible = false;
                            txtCodeType.Visible = false;
                            ddlCodeType.Visible = false;
                        }


                        if (lblAccTypeClass.Text == "5" || lblAccTypeClass.Text == "6")
                        {
                            BtnAmountSign.Text      = "Negative";
                            lblAmtSign.Text         = "2";
                            BtnAmountSign.BackColor = Color.Red;
                        }
                        else
                        {
                            BtnAmountSign.Text      = "Positive";
                            lblAmtSign.Text         = "1";
                            BtnAmountSign.BackColor = Color.Green;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.ddlAcType_SelectedIndexChanged Problem');</script>");
                //throw ex;
            }
        }
예제 #29
0
        protected void GenerateNewAccNo()
        {
            Int16         MainCode = Converter.GetSmallInteger(txtAccType.Text);
            A2ZACCTYPEDTO getDTO   = (A2ZACCTYPEDTO.GetInformation(MainCode));

            if (getDTO.AccTypeCode > 0)
            {
                hdnAccFlag.Text = Converter.GetString(getDTO.AccFlag);
            }


            //if (hdnAccFlag.Text == "2")
            //{

            GetAccountCount();

            string input1 = Converter.GetString(lblTrnferCuNo.Text).Length.ToString();
            string input2 = Converter.GetString(txtTrnMemNo.Text).Length.ToString();
            string input3 = Converter.GetString(hdnNewAccNo.Text).Length.ToString();

            string result1 = "";
            string result2 = "";
            string result3 = "";

            if (input1 == "1")
            {
                result1 = "000";
            }
            if (input1 == "2")
            {
                result1 = "00";
            }
            if (input1 == "3")
            {
                result1 = "0";
            }

            if (input2 == "1")
            {
                result2 = "0000";
            }
            if (input2 == "2")
            {
                result2 = "000";
            }
            if (input2 == "3")
            {
                result2 = "00";
            }
            if (input2 == "4")
            {
                result2 = "0";
            }

            if (input3 == "1")
            {
                result3 = "000";
            }
            if (input3 == "2")
            {
                result3 = "00";
            }
            if (input3 == "3")
            {
                result3 = "0";
            }

            if (input1 != "4" && input2 != "5" && input3 != "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + result1 + lblTrnferCuNo.Text + result2 + txtTrnMemNo.Text + result3 + hdnNewAccNo.Text;
            }

            if (input1 != "4" && input2 != "5" && input3 == "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + result1 + lblTrnferCuNo.Text + result2 + txtTrnMemNo.Text + hdnNewAccNo.Text;
            }

            if (input1 != "4" && input2 == "5" && input3 != "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + result1 + lblTrnferCuNo.Text + txtTrnMemNo.Text + result3 + hdnNewAccNo.Text;
            }

            if (input1 != "4" && input2 == "5" && input3 == "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + result1 + lblTrnferCuNo.Text + txtTrnMemNo.Text + hdnNewAccNo.Text;
            }

            if (input1 == "4" && input2 != "5" && input3 != "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + lblTrnferCuNo.Text + result2 + txtTrnMemNo.Text + result3 + hdnNewAccNo.Text;
            }

            if (input1 == "4" && input2 != "5" && input3 == "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + lblTrnferCuNo.Text + result2 + txtTrnMemNo.Text + hdnNewAccNo.Text;
            }

            if (input1 == "4" && input2 == "5" && input3 != "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + lblTrnferCuNo.Text + txtTrnMemNo.Text + result3 + hdnNewAccNo.Text;
            }
            if (input1 == "4" && input2 == "5" && input3 == "4")
            {
                lblTrnferAccNo.Text = txtAccType.Text + lblTrnferCuType.Text + lblTrnferCuNo.Text + txtTrnMemNo.Text + hdnNewAccNo.Text;
            }

            //}
            //else
            //{
            //    lblTrnferAccNo.Text = txtAccNo.Text;
            //}
        }
예제 #30
0
        public void GetAccInfo2()
        {
            try
            {
                Int64         AccNumber = Converter.GetLong(txtTrnAccNo.Text);
                A2ZACCOUNTDTO accgetDTO = (A2ZACCOUNTDTO.GetInfoAccNo(AccNumber));
                if (accgetDTO.a == 0)
                {
                    InvalidAccount();
                    txtTrnAccNo.Text = string.Empty;
                    txtTrnAccNo.Focus();
                    return;
                }
                else
                {
                    CtrlAccStatus.Text = Converter.GetString(accgetDTO.AccStatus);

                    if (CtrlAccStatus.Text == "98")
                    {
                        txtTrnAccNo.Text = string.Empty;
                        txtTrnAccNo.Focus();
                        TransferedAccount();
                        return;
                    }

                    if (CtrlAccStatus.Text == "99")
                    {
                        txtTrnAccNo.Text = string.Empty;
                        txtTrnAccNo.Focus();
                        ClosedAccount();
                        return;
                    }


                    txtTrnStaffCode.Text = Converter.GetString(accgetDTO.MemberNo);


                    CtrlTrnAccType.Text = Converter.GetString(accgetDTO.AccType);

                    lblcls.Text         = Converter.GetString(accgetDTO.AccAtyClass);
                    lblTrnAtyClass.Text = Converter.GetString(accgetDTO.AccAtyClass);


                    if (lblTrnAtyClass.Text == "5" || lblTrnAtyClass.Text == "6")
                    {
                        lblIntAmt.Visible     = true;
                        txtIntAmt.Visible     = true;
                        lblPrincAmt.Visible   = true;
                        txtPrincAmt.Visible   = true;
                        txtTrnAmount.ReadOnly = true;
                    }


                    if (lblAtyClass.Text == "7")
                    {
                        string input = txtTrnAccNo.Text;
                        lblTrnPayType.Text = input.Substring(13, 3);
                        int           paytype = Converter.GetInteger(lblTrnPayType.Text);
                        A2ZTRNCODEDTO get3DTO = (A2ZTRNCODEDTO.GetInformation99(paytype));
                        if (get3DTO.TrnCode > 0)
                        {
                            lblTrnAccTitle.Text = Converter.GetString(get3DTO.TrnDescription);
                        }
                    }
                    else
                    {
                        lblTrnPayType.Text = "0";
                        Int16         AccType = Converter.GetSmallInteger(CtrlTrnAccType.Text);
                        A2ZACCTYPEDTO get3DTO = (A2ZACCTYPEDTO.GetInformation(AccType));
                        if (get3DTO.AccTypeCode > 0)
                        {
                            lblTrnAccTitle.Text = Converter.GetString(get3DTO.AccTypeDescription);
                        }
                    }



                    int          MNo     = Converter.GetInteger(txtTrnStaffCode.Text);
                    A2ZMEMBERDTO get6DTO = (A2ZMEMBERDTO.GetInformation(0, 0, MNo));
                    if (get6DTO.NoRecord > 0)
                    {
                        lblTrnStaffName.Text = Converter.GetString(get6DTO.MemberName);
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.GetAccInfo Problem');</script>");
                //throw ex;
            }
        }