Exemple #1
0
        protected void txtCreditUNo_TextChanged(object sender, EventArgs e)
        {
            if (txtCreditUNo.Text != string.Empty)
            {
                txtMemNo.Text   = string.Empty;
                lblMemName.Text = string.Empty;

                A2ZCUNIONDTO getDTO = new A2ZCUNIONDTO();

                if (chkOldSearch.Checked == true)
                {
                    int CN = Converter.GetInteger(txtCreditUNo.Text);
                    hdnCuNumber.Text = Converter.GetString(CN);

                    getDTO = (A2ZCUNIONDTO.GetOldInfo(CN));
                }
                else
                {
                    string c = "";
                    int    a = txtCreditUNo.Text.Length;

                    string b = txtCreditUNo.Text;
                    c = b.Substring(0, 1);
                    int    re = Converter.GetSmallInteger(c);
                    int    dd = a - 1;
                    string d  = b.Substring(1, dd);

                    int re1 = Converter.GetSmallInteger(d);

                    Int16 CType = Converter.GetSmallInteger(re);
                    lblCuType.Text = Converter.GetString(CType);
                    int CNo = Converter.GetSmallInteger(re1);
                    lblCuNo.Text = Converter.GetString(CNo);

                    getDTO = (A2ZCUNIONDTO.GetInformation(CType, CNo));
                }

                if (getDTO.NoRecord > 0)
                {
                    lblCuType.Text = Converter.GetString(getDTO.CuType);
                    lblCuNo.Text   = Converter.GetString(getDTO.CreditUnionNo);

                    lblCuName.Text = Converter.GetString(getDTO.CreditUnionName);

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

                    txtAccNo.Text = string.Empty;
                    txtMemNo.Focus();
                }
                else
                {
                    txtAccNo.Text     = string.Empty;
                    txtCreditUNo.Text = string.Empty;
                    txtCreditUNo.Focus();
                    return;
                }
            }
        }
Exemple #2
0
        private void OldMemberInfoHelp()
        {
            int CN = Converter.GetInteger(txtOldCuNo.Text);

            hdnCuNumber.Text = Converter.GetString(CN);

            A2ZCUNIONDTO getDTO = (A2ZCUNIONDTO.GetOldInfo(CN));

            if (getDTO.NoRecord > 0)
            {
                lblCuType.Text   = Converter.GetString(getDTO.CuType);
                lblCuNo.Text     = Converter.GetString(getDTO.CreditUnionNo);
                lblCuNumber.Text = lblCuType.Text + lblCuNo.Text;

                if (CFlag.Text != "1")
                {
                    lblCuName.Text    = Converter.GetString(getDTO.CreditUnionName);
                    txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);
                }

                lblCType.Text     = Converter.GetString(getDTO.CuType);
                lblCTypeName.Text = Converter.GetString(getDTO.CreditUnionName);
                lblCNo.Text       = Converter.GetString(getDTO.CreditUnionNo);

                if (getDTO.CuStatus == 9)
                {
                    if (getDTO.CuReguCuType == 0)
                    {
                        lblCTypeName.Text = Converter.GetString(getDTO.CuAssoCuTypeName);
                        lblCNo.Text       = Converter.GetString(getDTO.CuAssoCuNo);
                        lblCType.Text     = Converter.GetString(getDTO.CuAssoCuType);
                    }
                    else
                    {
                        lblCTypeName.Text = Converter.GetString(getDTO.CuReguCuTypeName);
                        lblCNo.Text       = Converter.GetString(getDTO.CuReguCuNo);
                        lblCType.Text     = Converter.GetString(getDTO.CuReguCuType);
                    }

                    DisplayMessage();
                    txtCreditUNo.Text = string.Empty;
                    txtCreditUNo.Focus();
                    return;
                }

                gvSearchMEMDetail();
                gvSearchMEMInfo.Visible   = true;
                txtSearchMemName.ReadOnly = false;
            }
        }
Exemple #3
0
        protected void BtnSearch_Click(object sender, EventArgs e)
        {
            if (txtSearchCuName.Text != string.Empty)
            {
                txtSearchCuName_TextChanged(this, EventArgs.Empty);
                return;
            }

            if (txtSearchMemName.Text != string.Empty)
            {
                txtSearchMemName_TextChanged(this, EventArgs.Empty);
                return;
            }


            if (txtCreditUNo.Text != string.Empty && txtMemNo.Text == string.Empty && txtOldCuNo.Text == string.Empty)
            {
                NewMemberInfoHelp();
                return;
            }
            else if (txtOldCuNo.Text != string.Empty && txtOldMemNo.Text == string.Empty)
            {
                OldMemberInfoHelp();
                return;
            }
            else
            {
                if (lblModule.Text == "4" && txtMemNo.Text != string.Empty)
                {
                    lblCuType.Text = "0";
                    lblCuNo.Text   = "0";

                    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);
                        gvGetMEMDetail();
                        gvSearchMEMInfo.Visible   = true;
                        txtSearchMemName.ReadOnly = false;
                    }
                    else
                    {
                        InvalidStaffNo();
                        txtMemNo.Text = string.Empty;
                        txtMemNo.Focus();
                        return;
                    }
                }
                else
                {
                    if (txtCreditUNo.Text != string.Empty)
                    {
                        string c = "";
                        int    a = txtCreditUNo.Text.Length;

                        string b = txtCreditUNo.Text;
                        c = b.Substring(0, 1);
                        int    re  = Converter.GetSmallInteger(c);
                        int    dd  = a - 1;
                        string d   = b.Substring(1, dd);
                        int    re1 = Converter.GetSmallInteger(d);

                        Int16 CType = Converter.GetSmallInteger(re);
                        lblCuType.Text = Converter.GetString(CType);
                        int CNo = Converter.GetSmallInteger(re1);
                        lblCuNo.Text = Converter.GetString(CNo);

                        A2ZCUNIONDTO get5DTO = (A2ZCUNIONDTO.GetInformation(CType, CNo));
                        if (get5DTO.NoRecord > 0)
                        {
                            lblCuName.Text    = Converter.GetString(get5DTO.CreditUnionName);
                            lblCuNumber.Text  = lblCuType.Text + lblCuNo.Text;
                            txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);

                            lblCType.Text     = Converter.GetString(get5DTO.CuType);
                            lblCTypeName.Text = Converter.GetString(get5DTO.CreditUnionName);
                            lblCNo.Text       = Converter.GetString(get5DTO.CreditUnionNo);

                            if (get5DTO.CuStatus == 9)
                            {
                                if (get5DTO.CuReguCuType == 0)
                                {
                                    lblCTypeName.Text = Converter.GetString(get5DTO.CuAssoCuTypeName);
                                    lblCNo.Text       = Converter.GetString(get5DTO.CuAssoCuNo);
                                    lblCType.Text     = Converter.GetString(get5DTO.CuAssoCuType);
                                }
                                else
                                {
                                    lblCTypeName.Text = Converter.GetString(get5DTO.CuReguCuTypeName);
                                    lblCNo.Text       = Converter.GetString(get5DTO.CuReguCuNo);
                                    lblCType.Text     = Converter.GetString(get5DTO.CuReguCuType);
                                }

                                DisplayMessage();
                                txtCreditUNo.Text = string.Empty;
                                txtCreditUNo.Focus();
                                return;
                            }

                            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);
                                gvSearchCUInfo.Visible = false;

                                gvGetMEMDetail();
                                gvSearchMEMInfo.Visible   = true;
                                txtSearchMemName.ReadOnly = false;
                            }
                            else
                            {
                                InvalidMemNo();
                                txtMemNo.Text = string.Empty;
                                txtMemNo.Focus();
                                return;
                            }
                        }
                        else
                        {
                            InvalidCuNo();
                            txtCreditUNo.Text = string.Empty;
                            txtCreditUNo.Focus();
                            return;
                        }
                    }

                    if (txtOldCuNo.Text != string.Empty)
                    {
                        int CN = Converter.GetInteger(txtOldCuNo.Text);

                        hdnCuNumber.Text = Converter.GetString(CN);

                        A2ZCUNIONDTO getDTO = (A2ZCUNIONDTO.GetOldInfo(CN));

                        //A2ZCUNIONDTO getDTO = (A2ZCUNIONDTO.GetInformation(CuType, CNo));

                        if (getDTO.NoRecord > 0)
                        {
                            lblCuType.Text = Converter.GetString(getDTO.CuType);
                            lblCuNo.Text   = Converter.GetString(getDTO.CreditUnionNo);

                            lblCuNumber.Text = lblCuType.Text + lblCuNo.Text;

                            lblCuName.Text    = Converter.GetString(getDTO.CreditUnionName);
                            txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);

                            lblCType.Text     = Converter.GetString(getDTO.CuType);
                            lblCTypeName.Text = Converter.GetString(getDTO.CreditUnionName);
                            lblCNo.Text       = Converter.GetString(getDTO.CreditUnionNo);

                            if (getDTO.CuStatus == 9)
                            {
                                if (getDTO.CuReguCuType == 0)
                                {
                                    lblCTypeName.Text = Converter.GetString(getDTO.CuAssoCuTypeName);
                                    lblCNo.Text       = Converter.GetString(getDTO.CuAssoCuNo);
                                    lblCType.Text     = Converter.GetString(getDTO.CuAssoCuType);
                                }
                                else
                                {
                                    lblCTypeName.Text = Converter.GetString(getDTO.CuReguCuTypeName);
                                    lblCNo.Text       = Converter.GetString(getDTO.CuReguCuNo);
                                    lblCType.Text     = Converter.GetString(getDTO.CuReguCuType);
                                }

                                DisplayMessage();
                                txtCreditUNo.Text = string.Empty;
                                txtCreditUNo.Focus();
                                return;
                            }



                            int          MemNumber = Converter.GetInteger(txtOldMemNo.Text);
                            int          CuNumber  = Converter.GetInteger(hdnCuNumber.Text);
                            A2ZMEMBERDTO get1DTO   = new A2ZMEMBERDTO();
                            get1DTO = (A2ZMEMBERDTO.GetInfoOldMember(CuNumber, MemNumber));

                            if (get1DTO.NoRecord > 0)
                            {
                                txtMemNo.Text          = Converter.GetString(get1DTO.MemberNo);
                                lblMemName.Text        = Converter.GetString(get1DTO.MemberName);
                                gvSearchCUInfo.Visible = false;

                                gvGetMEMDetail();
                                gvSearchMEMInfo.Visible   = true;
                                txtSearchMemName.ReadOnly = false;
                            }
                            else
                            {
                                InvalidMemNo();
                                txtMemNo.Text = string.Empty;
                                txtMemNo.Focus();
                                return;
                            }
                        }
                        else
                        {
                            InvalidCuNo();
                            txtOldCuNo.Text = string.Empty;
                            txtOldCuNo.Focus();
                            return;
                        }
                    }
                }
            }
        }
        private void OldMemberInfoHelp()
        {
            int CN = Converter.GetInteger(txtOldCuNo.Text);

            hdnCuNumber.Text = Converter.GetString(CN);

            A2ZCUNIONDTO getDTO = (A2ZCUNIONDTO.GetOldInfo(CN));

            if (getDTO.NoRecord > 0)
            {
                lblCuType.Text   = Converter.GetString(getDTO.CuType);
                lblCuNo.Text     = Converter.GetString(getDTO.CreditUnionNo);
                lblCuNumber.Text = lblCuType.Text + lblCuNo.Text;

                lblCuName.Text    = Converter.GetString(getDTO.CreditUnionName);
                txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);

                lblCType.Text     = Converter.GetString(getDTO.CuType);
                lblCTypeName.Text = Converter.GetString(getDTO.CreditUnionName);
                lblCNo.Text       = Converter.GetString(getDTO.CreditUnionNo);

                if (getDTO.CuStatus == 9)
                {
                    if (getDTO.CuReguCuType == 0)
                    {
                        lblCTypeName.Text = Converter.GetString(getDTO.CuAssoCuTypeName);
                        lblCNo.Text       = Converter.GetString(getDTO.CuAssoCuNo);
                        lblCType.Text     = Converter.GetString(getDTO.CuAssoCuType);
                    }
                    else
                    {
                        lblCTypeName.Text = Converter.GetString(getDTO.CuReguCuTypeName);
                        lblCNo.Text       = Converter.GetString(getDTO.CuReguCuNo);
                        lblCType.Text     = Converter.GetString(getDTO.CuReguCuType);
                    }

                    DisplayMessage();
                    txtCreditUNo.Text = string.Empty;
                    txtCreditUNo.Focus();
                    return;
                }

                gvSearchCUInfo.Visible = false;
                Session["RCreditUNo"]  = lblCuNumber.Text;
                Session["RtxtOldCuNo"] = txtOldCuNo.Text;

                //Session["RMemNo"] = txtMemNo.Text;
                //Session["MemName"] = lblMemName.Text;
                Session["flag"]   = "1";
                Session["ExFlag"] = string.Empty;
                Session["SFlag"]  = string.Empty;
                //txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);
                if (lblNflag.Text == "0")
                {
                    ScriptManager.RegisterStartupScript(Page, typeof(System.Web.UI.Page),
                                                        "click", @"<script>window.opener.location.href='CSInstantAccountOpeningMaintenance.aspx'; self.close();</script>", false);
                }


                //gvSearchMEMDetail();
                //gvSearchMEMInfo.Visible = true;
                //txtSearchMemName.ReadOnly = false;
            }
        }
        protected void txtTrnCuNo_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (txtTrnCuNo.Text != string.Empty)
                {
                    BtnTransfer.Visible = false;


                    A2ZCUNIONDTO getDTO = new A2ZCUNIONDTO();

                    if (chkOldSearch.Checked == true)
                    {
                        int CN = Converter.GetInteger(txtTrnCuNo.Text);
                        hdnCuNumber.Text = Converter.GetString(CN);

                        getDTO = (A2ZCUNIONDTO.GetOldInfo(CN));
                    }
                    else
                    {
                        string c = "";
                        int    a = txtTrnCuNo.Text.Length;

                        string b = txtTrnCuNo.Text;
                        c = b.Substring(0, 1);
                        int    re = Converter.GetSmallInteger(c);
                        int    dd = a - 1;
                        string d  = b.Substring(1, dd);

                        int re1 = Converter.GetSmallInteger(d);

                        Int16 CType = Converter.GetSmallInteger(re);
                        lblCuType.Text = Converter.GetString(CType);
                        int CNo = Converter.GetSmallInteger(re1);
                        lblCuNo.Text = Converter.GetString(CNo);

                        getDTO = (A2ZCUNIONDTO.GetInformation(CType, CNo));
                    }

                    if (getDTO.NoRecord > 0)
                    {
                        lblTrnferCuType.Text = Converter.GetString(getDTO.CuType);
                        lblTrnferCuNo.Text   = Converter.GetString(getDTO.CreditUnionNo);

                        lblCuName.Text = Converter.GetString(getDTO.CreditUnionName);


                        txtTrnMemNo.Focus();
                        txtTrnCuNo.Text = lblTrnferCuType.Text + "-" + lblTrnferCuNo.Text;
                    }
                    else
                    {
                        InvalidCuNo();
                        txtTrnCuNo.Text = string.Empty;
                        txtTrnCuNo.Focus();
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.txtTrnCuNo_TextChanged Problem');</script>");
                //throw ex;
            }
        }
Exemple #6
0
        protected void BtnSearch_Click(object sender, EventArgs e)
        {
            if (lblModule.Text == "4" && txtMemNo.Text != string.Empty)
            {
                lblCuType.Text = "0";
                lblCuNo.Text   = "0";

                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);
                    gvDetail();
                    //MoveAccDescription();
                }
                else
                {
                    InvalidStaffNo();
                    txtMemNo.Text = string.Empty;
                    txtMemNo.Focus();
                    return;
                }
            }
            else
            {
                if (txtCreditUNo.Text != string.Empty)
                {
                    string c = "";
                    int    a = txtCreditUNo.Text.Length;

                    string b = txtCreditUNo.Text;
                    c = b.Substring(0, 1);
                    int    re  = Converter.GetSmallInteger(c);
                    int    dd  = a - 1;
                    string d   = b.Substring(1, dd);
                    int    re1 = Converter.GetSmallInteger(d);

                    Int16 CType = Converter.GetSmallInteger(re);
                    lblCuType.Text = Converter.GetString(CType);
                    int CNo = Converter.GetSmallInteger(re1);
                    lblCuNo.Text = Converter.GetString(CNo);

                    A2ZCUNIONDTO get5DTO = (A2ZCUNIONDTO.GetInformation(CType, CNo));
                    if (get5DTO.NoRecord > 0)
                    {
                        lblCuName.Text    = Converter.GetString(get5DTO.CreditUnionName);
                        lblCuNumber.Text  = lblCuType.Text + lblCuNo.Text;
                        txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);

                        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);

                            gvDetail();
                            //MoveAccDescription();
                        }
                        else
                        {
                            InvalidMemNo();
                            txtMemNo.Text = string.Empty;
                            txtMemNo.Focus();
                            return;
                        }
                    }
                    else
                    {
                        InvalidCuNo();
                        txtCreditUNo.Text = string.Empty;
                        txtCreditUNo.Focus();
                        return;
                    }
                }

                if (txtOldCuNo.Text != string.Empty)
                {
                    int CN = Converter.GetInteger(txtOldCuNo.Text);

                    hdnCuNumber.Text = Converter.GetString(CN);

                    A2ZCUNIONDTO getDTO = (A2ZCUNIONDTO.GetOldInfo(CN));

                    //A2ZCUNIONDTO getDTO = (A2ZCUNIONDTO.GetInformation(CuType, CNo));

                    if (getDTO.NoRecord > 0)
                    {
                        lblCuType.Text = Converter.GetString(getDTO.CuType);
                        lblCuNo.Text   = Converter.GetString(getDTO.CreditUnionNo);

                        lblCuName.Text    = Converter.GetString(getDTO.CreditUnionName);
                        txtCreditUNo.Text = (lblCuType.Text + "-" + lblCuNo.Text);

                        int          MemNumber = Converter.GetInteger(txtOldMemNo.Text);
                        int          CuNumber  = Converter.GetInteger(hdnCuNumber.Text);
                        A2ZMEMBERDTO get1DTO   = new A2ZMEMBERDTO();
                        get1DTO = (A2ZMEMBERDTO.GetInfoOldMember(CuNumber, MemNumber));

                        if (get1DTO.NoRecord > 0)
                        {
                            txtMemNo.Text   = Converter.GetString(get1DTO.MemberNo);
                            lblMemName.Text = Converter.GetString(get1DTO.MemberName);

                            gvDetail();
                            //MoveAccDescription();
                        }
                        else
                        {
                            InvalidMemNo();
                            txtMemNo.Text = string.Empty;
                            txtMemNo.Focus();
                            return;
                        }
                    }
                    else
                    {
                        InvalidCuNo();
                        txtOldCuNo.Text = string.Empty;
                        txtOldCuNo.Focus();
                        return;
                    }
                }
            }
        }
Exemple #7
0
        protected void txtCreditUNo_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (txtCreditUNo.Text != string.Empty)
                {
                    A2ZCUNIONDTO getDTO = new A2ZCUNIONDTO();

                    if (chkOldSearch.Checked == true)
                    {
                        int CN = Converter.GetInteger(txtCreditUNo.Text);
                        getDTO = (A2ZCUNIONDTO.GetOldInfo(CN));

                        hdnCuNumber.Text = txtCreditUNo.Text;
                    }
                    else
                    {
                        string c = "";
                        int    a = txtCreditUNo.Text.Length;

                        string b = txtCreditUNo.Text;
                        c = b.Substring(0, 1);
                        int    re  = Converter.GetSmallInteger(c);
                        int    dd  = a - 1;
                        string d   = b.Substring(1, dd);
                        int    re1 = Converter.GetSmallInteger(d);

                        Int16 CuType = Converter.GetSmallInteger(re);
                        lblCuType.Text = Converter.GetString(CuType);
                        int CNo = Converter.GetSmallInteger(re1);
                        lblCuNo.Text = Converter.GetString(CNo);

                        getDTO = (A2ZCUNIONDTO.GetInformation(CuType, CNo));
                    }

                    if (getDTO.CreditUnionNo > 0)
                    {
                        lblCuStatus.Text = Converter.GetString(getDTO.CuStatus);
                        if (lblCuStatus.Text == "9")
                        {
                            TransferCuNoMSG();

                            txtCreditUNo.Text = string.Empty;
                            txtCreditUNo.Focus();
                            return;
                        }

                        lblCuType.Text = Converter.GetString(getDTO.CuType);
                        lblCuNo.Text   = Converter.GetString(getDTO.CreditUnionNo);

                        //string sqlquery = "SELECT lTrim(str(CuType) +lTrim(str(CuNo))) As CuNo,CuName from A2ZCUNION where CuType='" + CuType + "'";
                        //ddlCreditUNo = DataAccessLayer.BLL.CommonManager.Instance.FillDropDownListWithSelect(sqlquery, ddlCreditUNo, "A2ZCSMCUS");
                        //ddlCreditUNo.SelectedValue = Converter.GetString(lblCuType.Text + lblCuNo.Text);
                        txtCreditUNo.Text = lblCuType.Text + "-" + lblCuNo.Text;
                        lblCuName.Text    = Converter.GetString(getDTO.CreditUnionName);

                        txtMemNo.Focus();
                    }
                    else
                    {
                        InvalidCuNoMSG();

                        txtCreditUNo.Text = string.Empty;
                        txtCreditUNo.Focus();
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }