Thank You for Visit Me
Free call
|
|
comments (0)
|
রবি,বাংলালিংঙ্ক,ওয়ারিদ এবং গ্রামীনফোন এর Manu
|
|
comments (0)
|
সকল Internet enable মডেল Handset এ Internet বা wap Manually Configuration করুন। কিভাবে করবেন তা আমি বিস্তারিত বলে দিচ্ছি।।।।
For Grameen phone
GP WAP Setting:
Connection/Profile: GP-WAP
APN(Access Point Name): gpwap
IP: 010.128.001.002
Port: 8080
homepage: http://google.com
GP MMS Setting:
Connection/Profile: GP-MMS
APN(Access Point Name): gpmms
IP: 010.128.001.002
Port: 8080
homepage: http://mms.gpsurf.net/servlets/mms
GP INTERNET Setting:
Connection/Profile: GP-INTERNET
APN(Access Point Name): gpinternet
IP: 010.128.001.002
Port: 8080
homepage: http://google.com
For Robi
Robi WAP Setting:
Connection/Profile: Robi-WAP
APN(Access Point Name): wap
IP: 192.168.023.007
Port: 9201
homepage: http://google.com
Robi MMS Setting:
Connection/Profile: Robi-MMS
APN(Access point Name): WAP
IP: 192.168.023.007
Port: 9201
Homepage: http://192.168.23.4/was
Robi INTERNET Setting:
Connection/Profile: Robi-INTERNET
APN(Access Point Name): internet
IP: 192.168.023.007
Port: 9201
homepage: http://google.com
For banglalink
Banglalink WAP Setting:
Connection/Profile: Banglalink-WAP
APN(Access Point Name): blwap
IP: 010.010.055.034
Port: 8799
homepage: http://google.com
Banglalink MMS Setting:
Connection/Profile: Banglalink-MMS
APN(Access Point Name): blmms
IP: 010.010.055.034
Port: 8799
homepage: http://google.com
Banglalink INTERNET Setting:
Connection/Profile: Banglalink-WEB
APN(Access Point Name): blweb
IP: 010.010.055.034
Port: 8799
homepage: http://google.com
Warid WAP Setting:
Connection/Profile: Warid WAP
APN(Access Point Name): wap
IP: 010.006.000.002
Port: 8080
homepage: http//google.com
Warid MMS Setting:
Connection/Profile: Warid MMS
APN(Access Point Name): mms
IP: 010.006.000.002
Port: 8080
homepage: http://10.6.0.21/servlets/mms
Warid INTERNET Setting:
Connection/Profile: Warid Internet
APN(Access Point Name): internet
IP: 010.006.000.002
Port: 8080
homepage: http://google.com
Inserting And Retrieve Image
|
|
comments (0)
|
private void mpriiInsertIntoImage()
{
// int liReturnValue = -1;
try
{
if (DatabaseConnector.gmpubstasqlconnSQLConnection.State == ConnectionState.Open)
{
DatabaseConnector.gmpubstasqlconnSQLConnection.Close();
}
DatabaseConnector.gmpubstasqlconnSQLConnection.Open();
SqlCommand lsqlcommSQLCommand = DatabaseConnector.gmpubstasqlconnSQLConnection.CreateCommand();
byte[] lbyteEmployeePhoto = ReadFile(txtBrowse.Text);
mpristrSQLQuery = "insert into SAM_CUSTOMER_IMAGE(FORM_NUMBER, CUSTOMER_IMAGE) values ('" + txtFormNo.Text + "', @ImageData)";
SqlCommand SqlCom = new SqlCommand(mpristrSQLQuery, DatabaseConnector.gmpubstasqlconnSQLConnection);
SqlCom.Parameters.Add(new SqlParameter("@ImageData", (object)lbyteEmployeePhoto));
SqlCom.ExecuteNonQuery();
mpristrSQLQuery = null;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
//return liReturnValue;
}
}
byte[] ReadFile(string sPath)
{
byte[] data = null;
FileInfo fInfo = new FileInfo(sPath);
long numBytes = fInfo.Length;
FileStream fStream = new FileStream(sPath, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fStream);
data = br.ReadBytes((int)numBytes);
return data;
}
if (mpribIsExists())
{
pb1Photo.Image = null;
pb2Photo.Image = null;
pb3Photo.Image = null;
pb4Photo.Image = null;
pb5Photo.Image = null;
int i = 0;
Byte[] byteBLOBData1 = new Byte[0];
Byte[] byteBLOBData2 = new Byte[0];
Byte[] byteBLOBData3 = new Byte[0];
Byte[] byteBLOBData4 = new Byte[0];
Byte[] byteBLOBData5 = new Byte[0];
string lstrSQL = "SELECT LAND_CONFIRM_PI_DOLIL_ATTACMENT FROM LAND_CONFIRM_PI_DOLIL_REG WHERE LAND_CONFIRM_PI_DOLIL_REG_NO='" + txtDoliRegNo.Text.Trim() + "'";
DatabaseConnector.gmpubstasqlconnSQLConnection.Open();
SqlCommand thisCommand = DatabaseConnector.gmpubstasqlconnSQLConnection.CreateCommand();
thisCommand.CommandText = lstrSQL;
SqlDataReader thisReader = thisCommand.ExecuteReader();
while (thisReader.Read())
{
if (i == 0)
{
byteBLOBData1 = (Byte[])(thisReader["LAND_CONFIRM_PI_DOLIL_ATTACMENT"]);
MemoryStream ms1 = new MemoryStream(byteBLOBData1);
pb1Photo.Image = Image.FromStream(ms1);
}
if (i == 1)
{
byteBLOBData2 = (Byte[])(thisReader["LAND_CONFIRM_PI_DOLIL_ATTACMENT"]);
MemoryStream ms2 = new MemoryStream(byteBLOBData2);
pb2Photo.Image = Image.FromStream(ms2);
}
if (i == 2)
{
byteBLOBData3 = (Byte[])(thisReader["LAND_CONFIRM_PI_DOLIL_ATTACMENT"]);
MemoryStream ms3 = new MemoryStream(byteBLOBData3);
pb3Photo.Image = Image.FromStream(ms3);
}
if (i == 3)
{
byteBLOBData4 = (Byte[])(thisReader["LAND_CONFIRM_PI_DOLIL_ATTACMENT"]);
MemoryStream ms4 = new MemoryStream(byteBLOBData4);
pb4Photo.Image = Image.FromStream(ms4);
}
if (i == 4)
{
byteBLOBData5 = (Byte[])(thisReader["LAND_CONFIRM_PI_DOLIL_ATTACMENT"]);
MemoryStream ms5 = new MemoryStream(byteBLOBData5);
pb5Photo.Image = Image.FromStream(ms5);
}
i++;
}
private bool mpribIsExists()
{
try
{
OperationGateway operationGateway = new OperationGateway();
return operationGateway.mpubiIsExistsRecord("LAND_CONFIRM_PI_DOLIL_REG", "LAND_CONFIRM_PI_DOLIL_REG_NO", txtDoliRegNo.Text.Trim());
}
catch (Exception pexpIsExistsException)
{
MessageBox.Show(pexpIsExistsException.Message);
return false;
}
}
OLAP
|
|
comments (0)
|
OLAP
Online analytical processing (OLAP) allows the user to access aggregated and organized data from business data sources, such as data warehouses, in a multidimensional structure called a cube. Microsoft provides tools and features for OLAP that user can use to design, deploy, and maintain cubes and other supporting objects.
Cubes in a data warehouse are stored in three different modes. A relational storage model is called Relational Online Analytical Processing mode or ROLAP, while a Multidimensional Online Analytical processing mode is called MOLAP. When dimensions are stored in a combination of the two modes then it is known as Hybrid Online Analytical Processing mode or HOLAP.
http://www.sql-server-performance.com/articles/biz/intro_ssas_p1.aspx
What are the differences between stored procedure and functions in SQL Server 2000?
|
|
comments (0)
|
1) functions are used for computations where as procedures
can be used for performing business logic
2) functions MUST return a value, procedures need not be.
4) function parameters are always IN, no OUT is possible
2. EXEC command can't be used inside a Function where it
can be used inside an sproc.
a. A FUNCTION is always returns a value using the return
statement. A PROCEDURE may return one or more values
through parameters or may not return at all.
b. Functions are normally used for computations where as
procedures are normally used for executing business logic.
c. A Function returns 1 value only. Procedure can return
multiple values (max 1024).
d. Stored procedure returns always integer value by default
zero. Whereas function returns type could be scalar or
table or table values
e. Stored procedure is precompiled execution plan where as
functions are not.
f. A function can call directly by SQL statement like
select func_name from dual while procedure cannot.
g.Stored procedure has the security and reduces the network
traffic and also we can call stored procedure in any no. of
applications at a time.
h. A Function can be used in the SQL Queries while a
procedure cannot be used in SQL queries .that cause a major
difference b/w function and procedures.
বিশ্বকাপ ক্রিকেট বাংলাদেশের খরচ ৪৭৭ কোটি
|
|
comments (0)
|
বিশ্বকাপ ক্রিকেটের সহ আয়োজক হিসেবে বাংলাদেশের খরচ হয়েছে ৪৭৬ কোটি ৮৩ লাখ টাকা।
সোমবার সচিবালয়ে এক সংবাদ সম্মেলনে ক্রীড়া প্রতিমন্ত্রী আহাদ আলী সরকার এ হিসাব প্রকাশ করেন।
তবে সহ-আয়োজক দেশ হিসাবে এই ক্রীড়া আয়োজন থেকে বাংলাদেশ আর্থিকভাবে কী পরিমাণ লাভ পেয়েছে তা প্রতিমন্ত্রী জানাতে পারেননি।
তিনি ব্যায়ের হিসাব দিতে পারলেও আয়ের খাতগুলো সম্পর্কে সাংবাদিকদের প্রশ্নের জবাবে বলেন, বাংলাদেশে বিশ্বকাপের আট ম্যাচ আয়োজনে কী পরিমাণ আয় বা ব্যায় হয়েছে তা জানাতে পারবে বাংলাদেশ ক্রিকেট বোর্ড (বিসিবি)।
ব্যয়ের হিসাব দিতে গিয়ে আহাদ আলী জানান, বিশ্বকাপ উপলক্ষে যুব ও ক্রীড়মন্ত্রণালয় পাঁচটি স্টেডিয়ামের সংষ্কার কাজে ব্যয় করেছে ৩০৪ কোটি ৩৩ লাখ টাকা।
এর মধ্যে বঙ্গবন্ধু স্টেডিয়ামের জন্য ৩৫ কোটি ৮ লাখ টাকা, শের-ই-বাংলা স্টেডিয়ামের জন্য ৭৮ কোটি ৪ লাখ টাকা, চট্টগ্রাম স্টেডিয়ামের জন্য ৭১ কোটি ১৪ লাখ টাকা, ফতুল্লা স্টেডিয়ামের জন্য ৬২ কোটি ৮২ লাখ টাকা ও খুলনা স্টেডিয়ামের সংষ্কারে ৫৬ কোটি ৬৫ লাখ টাকা ব্যায় হয়েছে।
এছাড়া স্বরাষ্ট্র মন্ত্রণালয়ের অধীনে ৮৫ কোটি টাকা; জাতীয় নিরাপত্তা অধিদপ্তরের জন্য যন্ত্রপাতি কেনা বাবদ ১১ কোটি ৭৫ লাখ টাকা; পল্লী উন্নয়ন ও সমবায় মন্ত্রণালয়ের অধীনে ৫৪ কোটি ৮০ লাখ টাকা; বিমান ও পর্যটন মন্ত্রণালয়ের মাধ্যমে ৮ কোটি ৫০ লাখ টাকা; তথ্য মন্ত্রণালয়ের কাজে ৫৪ লাখ টাকা এবং প্রতিরক্ষা মন্ত্রণালয়ের অধীনে ১১ কোটি ৯১ লাখ টাকা ব্যয় হয়েছে।
'তদন্ত কমিটি হবে'
এক প্রশ্নের জবাবে প্রতিমন্ত্রী বলেন, "আমাদের খেলোয়াড়দের ব্যর্থতার কারণ খুঁজে বের করতে একটি তদন্ত কমিটি করা হবে। আমাদের যেখানে দুর্বলতা রয়েছে, সেগুলো কাটিয়ে ওঠার যথাযথ ব্যবস্থা নেওয়া হবে।"
বিশ্বকাপ আয়োজনে সফলতার পাশাপাশি অনেক অনিয়মের অভিযোগও এসেছে জানিয়ে আহাদ আলী বলেন, আয়-ব্যয়ের হিসাব, টিকেট জালিয়াতি ও কালোবাজারির অভিযোগ এবং খাদ্যে বিষক্রিয়ার মতো ঘটনাগুলো খতিয়ে দেখতে যুব ও ক্রীড়া মন্ত্রণালয় শিগগিরই একটি তদন্ত কমিটি করবে।
বঙ্গবন্ধু স্টেডিয়ামে আবারো ক্রিকেট
ক্রিকেট আবারো বঙ্গবন্ধু স্টেডিয়ামে ফিরছে জানিয়ে ক্রীড়া প্রতিমন্ত্রী সংবাদ সম্মেলনে বলেন, "ফুটবল ক্রিকেট যৌথভাবে স্টেডিয়ামটি ব্যবহার করতে পারবে।"
তিনি জানান, ২০১৪ সালে বাংলাদেশ টি টোয়েন্টি বিশ্বকাপের আয়োজন করবে। এ জন্য পাঁচটি স্টেডিয়াম প্রস্তুত রাখতে হবে। বঙ্গবন্ধু স্টেডিয়াম এর অন্যতম।
আহাদ আলী সরকার বলেন, "টি টোয়েন্টি বিশ্বকাপের জন্য রাজশাহী ও সিলেট স্টেডিয়ামেরও সংস্কার করা হবে। এছাড়া কক্সবাজার ও গোপালগঞ্জ স্টেডিয়ামের নির্মাণ কাজ শিগগিরই শুরু করা হবে।"
Main Program
|
|
comments (0)
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data;
using System.IO;
using net.ERP.Constants;
using net.ERP.Utility;
using net.ERP.DatabaseSchema.TableSchema;
using net.ERP.DatabaseSchema.DBExistanceChecking;
using net.ERP.DatabaseSchema.DefaultDataConfiguration;
namespace net.ERP.MainEntryPoint
{
static class MainProgram
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
try
{
//Create an instance of StreamReader to read from a file and the using statement also closes the StreamReader.
using (StreamReader sr = new StreamReader("Server.txt"))
{
string lstrFileText = null;
//Read and display lines from the file until the end of the file is reached.
while ((lstrFileText = sr.ReadLine()) != null)
{
CommonConstants.gmpubstastrServerName = lstrFileText;
}
}
}
catch (Exception pexpServerSearch)
{
//Let the user know what went wrong.
MessageBox.Show(pexpServerSearch.Message);
}
DatabaseConnector databaseConnector = new DatabaseConnector();
databaseConnector.mpubvConnectDatabase(CommonConstants.gmpubstastrServerName);
if (DatabaseConnector.gmpubstasqlconnSQLConnection != null)
{
DatabaseExistanceChecking databaseExistanceChecking = new DatabaseExistanceChecking();
if (databaseExistanceChecking.mpubbIsDatabaseExists(CommonConstants.gmpubstastrServerName) == false)
{
Application.Run(new frmNewCompanyInstallation());
MessageBox.Show("Database created successfully. 'Software Support Team' suggests you to close the application and continue from the second time for processing.", CommonConstants.gmpubcstrUserConfirmation, MessageBoxButtons.OK, MessageBoxIcon.Information);
Application.Run(new mdiNetERP());
}
else
{
Application.Run(new mdiNetERP());
}
}
}
catch (Exception ae)
{
MessageBox.Show(ae .Message .ToString ());
}
finally
{
if (DatabaseConnector.gmpubstasqlconnSQLConnection.State == ConnectionState.Open)
{
DatabaseConnector.gmpubstasqlconnSQLConnection.Close();
}
}
}
}
}
Database Existence Checking
|
|
comments (0)
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using net.ERP.Constants;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace net.ERP.DatabaseSchema.DBExistanceChecking
{
class DatabaseExistanceChecking:CommonConstants
{
public bool mpubbIsDatabaseExists(string pstrServerName)
{
SqlConnection lprisqlconnSQLConnection = new SqlConnection("Server=" + pstrServerName + ";Integrated security=SSPI;database=master");
try
{
lprisqlconnSQLConnection.Open();
SqlCommand lsqlcommSQLCommand = lprisqlconnSQLConnection.CreateCommand();
lsqlcommSQLCommand.CommandText = "SELECT COUNT(*) AS TOTAL_RECORDS FROM master.dbo.sysdatabases WHERE NAME = 'NET_ERP_REMS'";
SqlDataReader lsqldrSqlDataReader = lsqlcommSQLCommand.ExecuteReader();
if (lsqldrSqlDataReader.Read())
{
int liTotalDatabases = (int)lsqldrSqlDataReader["TOTAL_RECORDS"];
lsqldrSqlDataReader.Close();
if (liTotalDatabases > 0)
{
return true;
}
else
{
return false;
}
}
return true;
}
catch (Exception pexpDBExistance)
{
MessageBox.Show(pexpDBExistance.ToString(), gmpubcstrUserConfirmation, MessageBoxButtons.OK, MessageBoxIcon.Information);
return false;
}
finally
{
if (lprisqlconnSQLConnection.State == ConnectionState.Open)
{
lprisqlconnSQLConnection.Close();
}
}
}
}
}
Blank Database Creation
|
|
comments (0)
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Windows.Forms;
using net.ERP.Constants;
namespace net.ERP.DatabaseSchema.DatabaseCreationForServer
{
class BlankDatabaseCreation:CommonConstants
{
public void mpubvCreateDatabase(string pstrServerName)
{
SqlConnection lprisqlconnSQLConnection = new SqlConnection("Server=" + pstrServerName + ";Integrated security=SSPI;database=master");
try
{
lprisqlconnSQLConnection.Open();
SqlCommand lsqlcommSqlCommand = new SqlCommand("CREATE DATABASE " + gmpubcstrDatabaseName, lprisqlconnSQLConnection);
lsqlcommSqlCommand.ExecuteNonQuery();
}
catch (Exception pexpDBCreation)
{
MessageBox.Show(pexpDBCreation.ToString(), CommonConstants.gmpubcstrUserConfirmation, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
finally
{
if (lprisqlconnSQLConnection.State == ConnectionState.Open)
{
lprisqlconnSQLConnection.Close();
}
}
}
}
}
Constant Declaration
|
|
comments (0)
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
namespace net.ERP.Constants
{
public class CommonConstants
{
public static string gmpubstastrServerName = null;
//public const string gmpubcstrServerName = "MAHBUB-PC";
public const string gmpubcstrDatabaseName = "NET_ERP_REMS";
public const string gmpubcstrUserName = "sa";
public const string gmpubcstrPassword = "";
//public const string gmpubcstrPassword = "manager";
public const string gmpubcstrMaxNumOfAllowedRecords = "No more record is allowed to add.";
public const string gmpubcstrUserConfirmation = "net.ERP User Confirmation";
public const string gmpubcstrDuplicationCheckingOfRecord = "This 'Inquiry' already exists in the database.";
public const string gmpubcstrRetryMsg = "Please try again to continue.";
public const string gmpubcstrRelatedRecordInUseNotification = "Related record exists!";
public const string gmpubcstrInsertOperationHeading = "Insert Operation Confirmation";
public const string gmpubcstrInsertOperationQuestion = "Are you sure you want to insert this 'Inquiry' details ?";
public const string gmpubcstrInsertOperationConfirmation = "Insert process completed successfully.";
public const string gmpubcstrInsertOperationFailureNotification = "Failed to insert data in the database. Please try again to continue.";
public const string gmpubcstrEditOperationHeading = "Edit Operation Confirmation";
public const string gmpubcstrEditOperationQuestion = "Are you sure you want to edit this selected 'Inquiry' details ?";
public const string gmpubcstrEditOperationConfirmation = "Edit process completed successfully.";
public const string gmpubcstrEditOperationFailureNotification = "Failed to edit data in the database. Please try again to continue.";
public const string gmpubcstrValidityCheckingBeforeEdit = "Invalid key to edit! Please try again to continue.";
public const string gmpubcstrDeleteOperationHeading = "Delete Operation Confirmation";
public const string gmpubcstrDeleteOperationQuestion = "Are you sure you want to delete this selected 'Inquiry' details ?";
public const string gmpubcstrDeleteOperationConfirmation = "Delete process completed successfully.";
public const string gmpubcstrDeleteOperationFailureNotification = "Failed to delete data from the database. Please try again to continue.";
public const string gmpubcstrValidityCheckingBeforeDelete = "Invalid key to delete! Please try again to continue.";
public const string gmpubcstrExistanceOfRelatedRecordWhenDelete = "Related record exists! Please try again to continue.";
public const string gmpubcstrDataErrorMessage = "Invalid input for this field!";
public const string gmpubcstrDataErrorHeading = "Data Validation Checking";
public const string gmpubcstrAddModeCaption = "Add Mode";
public const string gmpubcstrEditModeCaption = "Edit Mode";
public const string gmpubcstrDeleteModeCaption = "Delete Mode";
public const string gmpubcstrDisplayModeCaption = "Display Mode";
public const string gmpubcstrEndofList = "End of List";
public enum ACTION_MODE
{
ADD_MODE = 0,
EDIT_MODE = 1
};
}
}
