private void BindContractInfo() { DataTable dtInfo = BLL_PURC_CTP.Get_Ctp_Contract_Info(Convert.ToInt32(Request.QueryString["Quotation_ID"]), Convert.ToInt32(Request.QueryString["Contract_ID"])); if (dtInfo.Rows.Count > 0 && Convert.ToInt32(Request.QueryString["Quotation_ID"]) > 0) { lblApprovedBy.Text = dtInfo.Rows[0]["ApprovedBy"].ToString(); lblApprovedDT.Text = dtInfo.Rows[0]["Approved_Date"].ToString(); lblCatalogue.Text = dtInfo.Rows[0]["System_Description"].ToString(); lblCurrentSts.Text = dtInfo.Rows[0]["QTN_STS"].ToString(); lblDepartment.Text = dtInfo.Rows[0]["Dept_Name"].ToString(); lblEffectiveDT.Text = dtInfo.Rows[0]["Effective_Date"].ToString(); lblPort.Text = dtInfo.Rows[0]["PORT_NAME"].ToString(); //lblRejectedDT.Text = dtInfo.Rows[0]["ApprovedBy"].ToString(); lblSeachangeRef.Text = dtInfo.Rows[0]["QTN_Contract_Code"].ToString(); lblSentToSuppDT.Text = dtInfo.Rows[0]["RFQ_Sent_Date"].ToString(); lblSubmittedBySupp.Text = dtInfo.Rows[0]["QTN_Received_Date"].ToString();; lblSupplierName.Text = dtInfo.Rows[0]["Full_NAME"].ToString(); lblSupplierRef.Text = dtInfo.Rows[0]["Supplier_Ref_Number"].ToString(); imgApprovedByRmk.Attributes.Add("Title", "cssbody=[dvbdy1] cssheader=[dvhdr1] header=[ ] body=[" + dtInfo.Rows[0]["approver_remark"].ToString() + "]"); hlnkAddItem.Attributes.Add("onclick", "OpenPopupWindowBtnID('POP__IDAddItem', 'Add/modify contract item', 'CTP_Quotation_Items_PopUp.aspx?Dept_ID=" + dtInfo.Rows[0]["Dept_ID"].ToString() + "&Catalogue_code=" + dtInfo.Rows[0]["Catalogue"].ToString() + "&Catalogue_Name=" + dtInfo.Rows[0]["System_Description"].ToString() + "&DepartmentName=" + dtInfo.Rows[0]["Dept_Name"].ToString() + "&Quotation_ID=" + Request.QueryString["Quotation_ID"] + " ','popup',800,1500,40,40,true,true,true,false,'" + btnSearch.ClientID + "'); return false;"); BindSubCatalogue(dtInfo.Rows[0]["Catalogue"].ToString()); } else { hlnkAddItem.Attributes.Add("onclick", "OpenPopupWindowBtnID('POP__IDAddItem', 'Add/modify contract item', 'CTP_Quotation_Items_PopUp.aspx?Dept_ID=" + dtInfo.Rows[0]["Dept_ID"].ToString() + "&Catalogue_code=" + dtInfo.Rows[0]["Catalogue"].ToString() + "&Catalogue_Name=" + dtInfo.Rows[0]["System_Description"].ToString() + "&DepartmentName=" + dtInfo.Rows[0]["Dept_Name"].ToString() + "&Contract_ID=" + Request.QueryString["Contract_ID"] + " ','popup',800,1500,40,40,true,true,true,false,'" + btnSearch.ClientID + "'); return false;"); } }
private void BindContractInfo() { DataTable dtInfo = BLL_PURC_CTP.Get_Ctp_Contract_Info(Convert.ToInt32(Request.QueryString["Quotation_ID"]), Convert.ToInt32(Request.QueryString["Contract_ID"])); if (dtInfo.Rows.Count > 0 && Convert.ToInt32(Request.QueryString["Quotation_ID"]) > 0) { lblApprovedBy.Text = dtInfo.Rows[0]["ApprovedBy"].ToString(); lblCatalogue.Text = dtInfo.Rows[0]["System_Description"].ToString(); lblDepartment.Text = dtInfo.Rows[0]["Dept_Name"].ToString(); lblEffectiveDT.Text = dtInfo.Rows[0]["Effective_Date"].ToString(); lblPort.Text = dtInfo.Rows[0]["PORT_NAME"].ToString(); //lblRejectedDT.Text = dtInfo.Rows[0]["ApprovedBy"].ToString(); lblSeachangeRef.Text = dtInfo.Rows[0]["QTN_Contract_Code"].ToString(); lblSupplierName.Text = dtInfo.Rows[0]["Full_NAME"].ToString(); lblSupplierRef.Text = dtInfo.Rows[0]["Supplier_Ref_Number"].ToString(); imgApprovedByRmk.Attributes.Add("Title", "cssbody=[dvbdy1] cssheader=[dvhdr1] header=[ ] body=[" + dtInfo.Rows[0]["approver_remark"].ToString() + "]"); } }
private void BindFieldsAfterSave() { DataTable dtInfo = BLL_PURC_CTP.Get_Ctp_Contract_Info(Convert.ToInt32(Request.QueryString["Quotation_ID"])); if (dtInfo.Rows.Count > 0) { ListItem liCurrency = DDLCurrency.Items.FindByText(dtInfo.Rows[0]["currency"].ToString()); if (liCurrency != null) { DDLCurrency.ClearSelection(); liCurrency.Selected = true; } txtBargeCharge.Text = dtInfo.Rows[0]["Barge_Charge"].ToString(); txtDiscount.Text = dtInfo.Rows[0]["Discount"].ToString(); txtFrieghtCharge.Text = dtInfo.Rows[0]["Freight_Charge"].ToString(); txtOtherCharge.Text = dtInfo.Rows[0]["Other_Charge"].ToString(); txtPkgCharge.Text = dtInfo.Rows[0]["Pkg_Hld_Charge"].ToString(); txtTruckCharge.Text = dtInfo.Rows[0]["Truck_Charge"].ToString(); txtVat.Text = dtInfo.Rows[0]["Vat"].ToString(); lblApprovedItem_count.Text = "Item Count :- Approved : " + dtInfo.Rows[0]["APPROVED_ITEM_COUNT"].ToString() + ", Un Approved : " + dtInfo.Rows[0]["NOT_APPROVED_ITEM_COUNT"].ToString(); if (dtInfo.Rows[0]["Quotation_Status"].ToString() == "FZ" || dtInfo.Rows[0]["Quotation_Status"].ToString() == "AP") { btnSaveAsDraft.Enabled = false; btnSubmittoseach.Enabled = false; hdf_Quotation_Save_Status.Value = "1"; hlnkAddItem.Visible = false; } else { btnSaveAsDraft.Enabled = true; btnSubmittoseach.Enabled = true; hdf_Quotation_Save_Status.Value = "0"; hlnkAddItem.Visible = true; } } }