void LoadDetail() { //Detail var ret = orderControls.DetailData(_orderno); var dataOrder = ret.Result; //get PIC var myLab = CommonWeb.GetUserLab(); var listAnalyst = employeecontrols.GetDataAnalis(myLab); var dataPIC = listAnalyst.Result; if (dataPIC != null && dataPIC.Count() > 0) { DdlPIC.DataSource = dataPIC; DdlPIC.DataTextField = "employeeName"; DdlPIC.DataValueField = "employeeNo"; DdlPIC.DataBind(); } if (dataOrder != null) { ViewState["UrlLHP"] = dataOrder.LHPAttachmentUrl; lblcusname.Text = dataOrder.customertbl.customerName; lblKomoditi.Text = dataOrder.comoditytbl.comodityName; lblanalisis.Text = dataOrder.analysisType; lblSampel.Text = dataOrder.sampleTotal.ToString(); lblTotalHarga.Text = "Rp " + dataOrder.priceTotal?.ToString("n2"); if (!string.IsNullOrEmpty(dataOrder.CalculationFileUrl)) { ViewState["DownloadLampiranUrl"] = dataOrder.CalculationFileUrl; DivDownloadLampiran.Visible = true; } else { DivDownloadLampiran.Visible = false; } } }
void LoadDetail() { //Detail var ret = orderControls.DetailData(_orderno); var dataSample = ret.Result; //get PIC var myLab = CommonWeb.GetUserLab(); var ret2 = employeecontrols.GetDataAnalis(myLab); var dataPIC = ret2.Result; // var ret3 = orderanalysisControls.GetData(_orderno); var dataParameter = ret3.Result; if (dataPIC != null && dataPIC.Count() > 0) { DdlPIC.DataSource = dataPIC; DdlPIC.DataTextField = "employeeName"; DdlPIC.DataValueField = "employeeNo"; DdlPIC.DataBind(); } if (dataParameter != null && dataParameter.Count() > 0) { GvParameter.DataSource = dataParameter; GvParameter.DataBind(); } if (dataSample != null) { lblcusname.Text = dataSample.customertbl.customerName; lblKomoditi.Text = dataSample.comoditytbl.comodityName; lblanalisis.Text = dataSample.analysisType; lblSampel.Text = dataSample.sampleTotal.ToString(); lblTotalHarga.Text = "Rp " + dataSample.priceTotal?.ToString("n2"); } }