protected void ctlCompanyLookup_OnNotifyPopup(object sender, PopUpReturnArgs args)
        {
            DbCompany company = (DbCompany)args.Data;

            if (args.Type.Equals(PopUpReturnType.OK))
            {
                ctlCompanyAutocomplete.CompanyID   = company.CompanyID.ToString();
                ctlCompanyAutocomplete.CompanyCode = company.CompanyCode.ToString();
                ctlCompanyName.Text = company.CompanyName.ToString();
                ctlCompanyID.Text   = company.CompanyID.ToString();
                CompanyID           = CompanyID.ToString();
            }
            ctlUpdatePanelCompany.Update();
            CallOnObjectLookUpReturn(company);
        }
Exemplo n.º 2
0
    void CheckForChild()
    {
        Class1 queryResult = new Class1();

        try
        {
            accountantCls.Cmd.Connection.ConnectionString = accountantCls.GetConnStr();

            accountantCls.Cmd.CommandType = CommandType.Text;
            accountantCls.Cmd.CommandText = " select max(CompanyID) as CompanyID  from tCompanys WHERE CompanyIDParent ='" + LblNodeValue.Text + "' Group by ChartId,CompanyID   order by ChartId desc ";

            accountantCls.beginTrans();
            accountantCls.Reader = accountantCls.Cmd.ExecuteReader();


            if (accountantCls.Reader.Read())
            {
                Session["HasChild"] = "Y";
                CompanyID           = int.Parse(accountantCls.Reader["CompanyID"].ToString());
                LblNodeValue.Text   = CompanyID.ToString();
                accountantCls.Reader.Close();
                accountantCls.commitTrans();
            }
            else
            {
                Session["HasChild"] = "N";
                accountantCls.Reader.Close();
                accountantCls.commitTrans();
            }
        }
        catch (Exception ex)
        {
            accountantCls.rollBackTrans();
            queryResult.ErrorDesc = ex.Message;
            queryResult.ErrorNo   = -1;
        }
    }
 public override void FillCongressVotingArguments(CongressVoting voting)
 {
     voting.Argument1 = CompanyID.ToString();
     voting.Argument2 = CitizenID.ToString();
 }
 public override void FillCongressVotingArguments(CongressVoting voting)
 {
     voting.Argument1 = Amount.ToString();
     voting.Argument2 = CompanyID.ToString();
     voting.Argument3 = CurrencyID.ToString();
 }