public void GetOperator() { try { var objIncome = new WSIncome.SwiftExpressWSIncome(); var pResult = ""; var ds = objIncome.GetOperator(Session["connectionString"].ToString(), ref pResult); if (pResult == "") { if (ds.Tables[0].Rows.Count > 0) { ASPxGridLookup2.DataSource = ds; //ASPxGridLookup1.TextField = "NAME_CLASSIFICATION"; //ASPxGridLookup1.ValueField = "CLASSIFICATION"; ASPxGridLookup2.DataBind(); } Session["OPERATOR"] = ds; } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } objIncome.Dispose(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void LoadOperator() { try { var objIncome = new WSIncome.SwiftExpressWSIncome(); var pResult = ""; var ds = objIncome.GetOperator(Session["connectionString"].ToString(), ref pResult); if (pResult == "") { var regionCombo = (ASPxGridView1.Columns["OPERADOR_RESPOSABLE"] as GridViewDataComboBoxColumn); if (regionCombo != null) { regionCombo.PropertiesComboBox.DataSource = ds.Tables[0]; regionCombo.PropertiesComboBox.ValueField = "NAME_USER"; regionCombo.PropertiesComboBox.TextField = "NAME_USER"; } } objIncome.Dispose(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void GetOperator() { try { var objIncome = new WSIncome.SwiftExpressWSIncome(); var pResult = ""; var ds = objIncome.GetOperator(Session["connectionString"].ToString(), ref pResult); if (pResult == "") { ASPxGridLookup1.DataSource = ds; ASPxGridLookup1.DataBind(); Session["OPERATOR"] = ds; } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } objIncome.Dispose(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }