private void BtnCreateInvoiceData_Click(object sender, EventArgs e)
        {
            if (!CheckUtility.SearchConditionCheck(this, lblDate.LabelText, txtBilling_Date.Text.Trim(), true, Utility.DataType.YEARMONTH, 7, 6))
            {
                return;
            }
            string status = "0";
            frmInvoiceListController oController = new frmInvoiceListController();
            DataTable dt = oController.CreateInvoiceData(txtBilling_Date.Text, status);

            string return_message = "";
            string count          = "";
            string strMsg         = "";

            try
            {
                return_message = dt.Rows[0]["Error Message"].ToString();
                count          = dt.Rows[0]["Count"].ToString();
            }
            catch (Exception)
            {
            }

            if (!string.IsNullOrEmpty(return_message) && count == "1")
            {
                var confirmResult = MetroMessageBox.Show(this, "\n" + return_message, "Confirmation", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
                if (confirmResult == DialogResult.OK)
                {
                    status = "1";
                    //send to web service
                    frmInvoiceListController controller = new frmInvoiceListController();
                    DataTable dtResult = oController.CreateInvoiceData(txtBilling_Date.Text, status);


                    try
                    {
                        strMsg = dtResult.Rows[0]["Error Message"].ToString();
                        count  = dtResult.Rows[0]["Count"].ToString();
                        //messageInfo = dtResult.Rows[0]["Message Info"].ToString();
                    }
                    catch (Exception ex)
                    {
                    }
                    if (!string.IsNullOrEmpty(strMsg) && !string.IsNullOrEmpty(count))
                    {
                        if (count == "2")
                        {
                            MetroMessageBox.Show(this, "\n" + strMsg, "Success", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
                        }

                        if (count == "0")
                        {
                            MetroMessageBox.Show(this, "\n" + strMsg, "Fail", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
                        }
                    }
                }
            }
            else
            {
                if (count == "2")
                {
                    MetroMessageBox.Show(this, "\n" + return_message, "Success", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
                }
                if (count == "0")
                {
                    MetroMessageBox.Show(this, "\n" + return_message, "Fail", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
                }
            }
        }