protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(User.Identity.Name)) { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { if (!IsPostBack && !IsCallback) { var obec = ((BEParameters)Session["InitPar"]); /*if (obec.Permition == "001") * { * FormsAuthentication.SignOut(); * FormsAuthentication.RedirectToLoginPage(); * } * else * {*/ Init_VarSessions(); Set_Permissions(); var mmp = ((ASPxNavBar)Master.FindControl("nvbMain")); var _sd = obec.RAZON_SOCIAL; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Socied")).InnerText = _sd; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Local")).InnerText = obec.DscpLocal; ((ASPxLabel)BSFindControl.FindControlRecursive(Master, "lblTypeChange")).Text = "Tipo de Cambio: " + obec.Rate.ToString("c3"); //} } } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(User.Identity.Name)) { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { if (!IsPostBack && !IsCallback) { var obec = ((BEParameters)Session["InitPar"]); /*if (obec.Permition != "002") * { * FormsAuthentication.SignOut(); * FormsAuthentication.RedirectToLoginPage(); * } * else * {*/ gdvdln1.Columns[10].Visible = true; gdvdln1.Columns[11].Visible = true; //gdvdln1.Columns[12].Visible = true; Set_Permissions(); Session["odln"] = new List <BEDocument>(); Session["dln1"] = new List <BEDocumentLine>(); Session["ordr"] = new List <BEDocument>(); Session["rdr1"] = new List <BEDocumentLine>(); Session["ocrd"] = new List <BEClient>(); Session["oitm"] = new List <BEProduct>(); hdfTemp.Add("theme", ASPxWebControl.GlobalTheme); hdfTemp.Add("_emid", obec.U_BF_EMID); hdfTemp.Add("_soci", obec.Socied); hdfTemp.Add("_proj", obec.Project); hdfTemp.Add("Reserve", string.Empty); if (Session["cnoi"] != null) { ocno = (BEDocument)Session["cnoi"]; var i = 1; ocno.Lines.ForEach(item => { item.LineNum = i; i += 1; }); hdfTemp.Set("Reserve", ocno.Reserve); Session["dln1"] = ocno.Lines; gdvdln1.DataSource = ocno.Lines; gdvdln1.DataBind(); Session["cnoi"] = null; } var _sd = obec.RAZON_SOCIAL; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Socied")).InnerText = _sd; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Local")).InnerText = obec.DscpLocal; ((ASPxLabel)BSFindControl.FindControlRecursive(Master, "lblTypeChange")).Text = "Tipo de Cambio: " + obec.Rate.ToString("c3"); //} } } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(User.Identity.Name)) { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { if (!IsPostBack && !IsCallback) { var obec = ((BEParameters)Session["InitPar"]); /*if (obec.Permition == "001") * { * FormsAuthentication.SignOut(); * FormsAuthentication.RedirectToLoginPage(); * } * else * {*/ Init_VarSessions(); Set_Permissions(); var mmp = ((ASPxNavBar)Master.FindControl("nvbMain")); var _sd = obec.RAZON_SOCIAL; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Socied")).InnerText = _sd; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Local")).InnerText = obec.DscpLocal; ((ASPxLabel)BSFindControl.FindControlRecursive(Master, "lblTypeChange")).Text = ""; //} } } DateTime hoy = DateTime.Today; var mes = hoy.Month; var año = hoy.Year; var j = 0; for (var i = (año - 5); j <= 10; j++, i++) { cbbAnio.Items.Add(i.ToString(), i); } cbbMes.Items.Add("Enero", 1); cbbMes.Items.Add("Febrero", 2); cbbMes.Items.Add("Marzo", 3); cbbMes.Items.Add("Abril", 4); cbbMes.Items.Add("Mayo", 5); cbbMes.Items.Add("Junio", 6); cbbMes.Items.Add("Julio", 7); cbbMes.Items.Add("Agosto", 8); cbbMes.Items.Add("Setiembre", 9); cbbMes.Items.Add("Octubre", 10); cbbMes.Items.Add("Noviembre", 11); cbbMes.Items.Add("Diciembre", 12); cbbMes.SelectedIndex = mes - 1; cbbAnio.Value = año; //((ASPxLabel)BSFindControl.FindControlRecursive(Master, "lblTypeChange")).Text = "Tipo de Cambio: " + Rate1.ToString("c3"); }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(User.Identity.Name)) { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { if (!IsPostBack && !IsCallback) { var obec = ((BEParameters)Session["InitPar"]); if (obec.Permition == "001") { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { Session["dln1"] = new List<BEDocumentLine>(); Session["ocrd"] = new List<BEClient>(); Session["oitm"] = new List<BEProduct>(); hdfTemp.Add("theme", ASPxWebControl.GlobalTheme); hdfTemp.Add("_emid", obec.U_BF_EMID); hdfTemp.Add("_soci", obec.Socied); hdfTemp.Add("_proj", obec.Project); hdfTemp.Add("Reserve", string.Empty); hdfTemp.Add("_distri", string.Empty); hdfTemp.Add("_xmsg", string.Empty); if (Session["cnoi"] != null) { ocno = (BEDocument)Session["cnoi"]; var i = 1; ocno.Lines.ForEach(item => { item.LineNum = i; i += 1; }); hdfTemp.Set("Reserve", ocno.Reserve); Session["dln1"] = ocno.Lines; Session["cnoi"] = null; } //Init_VarSessions(); Set_Permissions(); var mmp = ((ASPxNavBar)Master.FindControl("nvbMain")); var _sd = ((string.Compare(obec.Socied, "BT", false) == 0) ? "Botica Francesa" : "Belmay"); ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Socied")).InnerText = _sd; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Local")).InnerText = obec.DscpLocal; ((ASPxLabel)BSFindControl.FindControlRecursive(Master, "lblTypeChange")).Text = "Tipo de Cambio: " + obec.Rate.ToString("c3"); } } } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(User.Identity.Name)) { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { if (!IsPostBack && !IsCallback) { var obec = ((BEParameters)Session["InitPar"]); /*if (obec.Permition == "003") * { * FormsAuthentication.SignOut(); * FormsAuthentication.RedirectToLoginPage(); * } * else * {*/ Set_Permissions(); hdfTemp.Add("theme", ASPxWebControl.GlobalTheme); hdfTemp.Add("_soci", obec.Socied); hdfTemp.Add("_htmt", "Materia"); Session["maen"] = new List <BEProduct>(); Session["QUT17"] = new List <BEQuotation17>(); Session["QUT18"] = new List <BEQuotation18>(); Session["qut"] = new List <BEQuotation>(); Session["ocrd"] = new List <BEClient>(); Session["qlst"] = new List <BEQuotation>(); Set_TotalSummary(); var obrd = new BRDocument(); Session["olfc"] = obrd.Get_SCSP_MPFC_OITM(obec); Session["pkph"] = obrd.Get_OSCSP_COPH(obec); var _sd = obec.RAZON_SOCIAL; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Socied")).InnerText = _sd; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Local")).InnerText = obec.DscpLocal; ((ASPxLabel)BSFindControl.FindControlRecursive(Master, "lblTypeChange")).Text = "Tipo de Cambio: " + obec.Rate.ToString("c3"); //} } } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(User.Identity.Name)) { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { if (!IsPostBack && !IsCallback) { var obec = ((BEParameters)Session["InitPar"]); /*if (obec.Permition != "002") * { * FormsAuthentication.SignOut(); * FormsAuthentication.RedirectToLoginPage(); * } * else * { * if (obec.Socied == "BT") * obec.WhsCode = "YOB_PT";*/ gdvinv1.Columns[10].Visible = true; gdvinv1.Columns[11].Visible = true; gdvinv1.Columns[12].Visible = true; gdvinv1.Columns[13].Visible = true; Init_VarSessions(); Set_Permissions(); var _sd = obec.RAZON_SOCIAL; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Socied")).InnerText = _sd; ((HtmlAnchor)BSFindControl.FindControlRecursive(Master, "Local")).InnerText = obec.DscpLocal; ((ASPxLabel)BSFindControl.FindControlRecursive(Master, "lblTypeChange")).Text = "Tipo de Cambio: " + obec.Rate.ToString("c3"); //} } } }