/// <summary> /// This Method is used to save courier details. /// </summary> /// <param name="Info"></param> public static void SaveCourierDetails(CourierInfo Info) { try { clsParameterCollection ParameterCollection = new clsParameterCollection(); ParameterCollection.ProcedureName = "BS_StoreAllocation_AddAWBNo"; ParameterCollection.Add(new clsParameter("@CourierName", Info.CourierName)); ParameterCollection.Add(new clsParameter("@STNno", Info.STNNo)); ParameterCollection.Add(new clsParameter("@AWBno", Info.AWBNo)); DataAccess.ExecuteNonQuerySp(ParameterCollection); } catch (Exception Ex) { if (!Ex.Message.Contains("User Define:")) BL_Exception.WriteLog(Ex); throw Ex; } }
/// <summary> /// This Method is used to save courier details. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSave_Click(object sender, EventArgs e) { try { CourierInfo Info = new CourierInfo(); Info.STNNo = txtSTNno.Text; //Info.CourierName = ddlCourier.SelectedValue; Info.CourierName = txtCourier.Text; Info.AWBNo = txtAWBno.Text; BL_AllocationToStore.SaveCourierDetails(Info); if (pagecall == "AllocationTo") ParentObjAllocationToStore.BindGrid(); else ParentObjAllocationFromStore.BindGrid(); } catch (Exception Ex) { } }