protected void Page_Load(object sender, EventArgs e)
 {
     //txtBarcodeSearch.Focus();
     UserValidate();
     txtBarcodeSearch.Attributes.Add("onKeyDown", "ModifyEnterKeyPress;");
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "anything", "test();", true);
     BU.InitializeIBankReceiptRegistration(this, UserInfo);
     if (!IsPostBack)
     {
         Fdate.Text = DateAndTime.GetDate10Digit();
         Ldate.Text = DateAndTime.GetDate10Digit();
         BU.FormItemesVisible(ddlTypePrice.SelectedValue);
         BU.FillddlReceiptType();
         BU.FillddlMovazehSearch();
         //     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "anything", "UpDateGrid();", true);
         if (txtBarcodeSearch.Text.Trim() == string.Empty)
         {
             BU.Load_dgBarcodeList(string.Empty, DateAndTime.GetDate10Digit(), DateAndTime.GetDate10Digit());
             BU.Load_dgReceiptList();
         }
         else
         {
             txtBarcodeSearch.Text = string.Empty;
         }
         ChangeControlState();
         txtBarcodeSearch.Focus();
         DateSelector1.Text = DateAndTime.GetDate10Digit();
     }
 }
Exemplo n.º 2
0
        private ReceiptClass FillOtherReceiptObject(UInt64 ReceiptID)
        {
            ReceiptClass rc = new ReceiptClass();

            rc.ApproveFlag         = "A";
            rc.UserID              = UserInfo.UserId;
            rc.PostNodeCode        = UserInfo.PostNodeCode;
            rc.ParentID            = ReceiptID;
            rc.ReceiptSerialNo     = _host.txtReceiptNo.Text;
            rc.ReceiptNumberSeri   = _host.txtSeri.Text;
            rc.ReceiptAlphabetSeri = _host.ddlSeri.SelectedValue;
            rc.Price     = Convert.ToUInt64(_host.txtPrice.Text);
            rc.PayerName = _host.txtPayerName.Text;
            rc.IsPhish   = _host.ddlTypePrice.SelectedValue;
            if (rc.IsPhish == "0")
            {
                rc.ChequeVajh          = _host.txtVajehCheque.Text.Trim();
                rc.ChequeAccountNo     = _host.txtAccountNoCheque.Text.Trim();
                rc.ChequeComment       = _host.txtComment.Text.Trim();
                rc.ChequeSaderKonandeh = _host.txtSaderKonandehCheque.Text.Trim();
            }
            rc.PayDate             = _host.PayDate;
            rc.IsSupplementReceipt = "Y";
            rc.InsertTime          = DateAndTime.GetTime8Digit();
            rc.Description         = "";
            rc.Deleted             = "N";
            rc.BankID           = Convert.ToInt32(_host.ddl_bank.SelectedValue);
            rc.ApproveDate      = DateAndTime.GetDate10Digit();
            rc.RefID            = BI.ReturnRefIDByID(ReceiptID);
            rc.ReceiptTypeValue = Convert.ToUInt64(BI.ReturnReceiptTypeValueByID(ReceiptID.ToString()));
            return(rc);
        }
Exemplo n.º 3
0
        private ReceiptClass FillReceiptObject()
        {
            ReceiptClass _Receipt = new ReceiptClass();

            _Receipt.IsPhish             = _host.ddlTypePrice.SelectedValue;
            _Receipt.BankID              = Convert.ToInt32(_host.ddl_bank.SelectedValue);
            _Receipt.InsertDate_SH       = DateAndTime.GetDate10Digit();
            _Receipt.InsertTime          = DateAndTime.GetTime8Digit();
            _Receipt.PayerName           = _host.txtPayerName.Text.Trim();
            _Receipt.Price               = Convert.ToUInt64(_host.txtPrice.Text.Trim());
            _Receipt.ReceiptSerialNo     = _host.txtReceiptSerialNo.Text.Trim();
            _Receipt.ReceiptNumberSeri   = _host.txtSeri.Text.Trim();
            _Receipt.ReceiptAlphabetSeri = _host.ddlSeri.SelectedValue.ToString();
            _Receipt.PayDate             = _host.ReceiptDate;
            _Receipt.UserID              = UserInfo.UserId;
            _Receipt.PostNodeCode        = UserInfo.PostNodeCode;
            if (_host.ddlTypePrice.SelectedValue == "0")
            {
                _Receipt.ChequeAccountNo     = _host.txtAccountNoCheque.Text.Trim();
                _Receipt.ChequeComment       = _host.txtComment.Text.Trim();
                _Receipt.ChequeSaderKonandeh = _host.txtSaderKonandehCheque.Text.Trim();
                _Receipt.ChequeVajh          = _host.txtVajehCheque.Text.Trim();
            }
            return(_Receipt);
        }
Exemplo n.º 4
0
 private void CreateReceiptObject(DataGridCommandEventArgs e)
 {
     receipt.ID          = int.Parse(e.Item.Cells[1].Text);
     receipt.ApproveDate = DateAndTime.GetDate10Digit();
     receipt.Description = ((System.Web.UI.WebControls.TextBox)e.Item.
                            FindControl("txtDescription")).Text;
 }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UserValidate();
     Buss.InitializeIControlForm(this, UserInfo);
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "anything", "Test();", true);
     if (false == Page.IsPostBack)
     {
         Fdate.Text = DateAndTime.GetDate10Digit();
         Ldate.Text = DateAndTime.GetDate10Digit();
         LoadFrom();
     }
 }
Exemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UserValidate();
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "anything", "test();", true);
     BU.Init(this, UserInfo);
     if (!IsPostBack)
     {
         Fdate.Text = DateAndTime.GetDate10DigitManyAgoDays(-7);
         Ldate.Text = DateAndTime.GetDate10Digit();
         BU.FillddlReceiptState();
         BU.Load_MyGrid();
     }
 }
Exemplo n.º 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UserValidate();
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "anything", "test();", true);
     _fin.InitializeFinancialPanel(this, UserInfo);
     if (!IsPostBack)
     {
         Fdate.Text = DateAndTime.GetDate10DigitManyAgoDays(-60);
         Ldate.Text = DateAndTime.GetDate10Digit();
         _fin.Load_ddlCountry();
         _fin.Load_MyGrid();
     }
 }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UserValidate();
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "anything", "test();", true);
     ChkNonContract_CheckedChanged(null, null);
     Buss.Init(this, UserInfo);
     if (!IsPostBack)
     {
         Buss.LoadForm();
         ViewState["RowID"] = 0;
         Fdate.Text         = DateAndTime.GetDate10Digit();
         Ldate.Text         = DateAndTime.GetDate10Digit();
     }
 }
Exemplo n.º 9
0
 public void ClearForm()
 {
     _host.ReceiptDate = DateAndTime.GetDate10Digit();
     _host.txtSearechPostReceiptSerial.Text             =
         _host.txtSearechPostReceiptSeri.Text           =
             _host.txtSaderKonandehCheque.Text          =
                 _host.txtReceiptSerialNo.Text          =
                     _host.txtAccountNoCheque.Text      =
                         _host.txtPayerName.Text        =
                             _host.txtComment.Text      =
                                 _host.txtPrice.Text    =
                                     _host.txtSeri.Text =
                                         string.Empty;
 }
Exemplo n.º 10
0
 public void UpdateSupplementReceipt(int ID)
 {
     RC = FillSupplementReceipt(ID);
     BI.UpdateSupplementReceipt(RC, DateAndTime.GetDate10Digit_latin(), DateAndTime.GetTime8Digit(), DateAndTime.GetDate10Digit());
 }
Exemplo n.º 11
0
 public void upHoldReceiptInfo()
 {
     BI.UpdateReceiptForupHold(DateAndTime.GetDate10Digit(), UserInfo.UserId, UserInfo.PostNodeCode);
 }
Exemplo n.º 12
0
 private void LoadPage()
 {
     Date.Text = DateAndTime.GetDate10Digit();
     BU.Load_ddlState();
 }
Exemplo n.º 13
0
        public string UpdateInfo(string SelectedID, string DontSelectedID, string RceiptID)
        {
            string Result = "";

            try
            {
                ReceiptClass _Receipt = FillReceiptObject();
                if (DontDisparityPriceWithArsenal(SelectedID, RceiptID) > -1)
                {
                    if (BI.IsExistEqualOtherReceipt(_Receipt.ReceiptSerialNo, _Receipt.ReceiptNumberSeri, _Receipt.ReceiptAlphabetSeri, RceiptID))
                    {
                        Result = "این فیش قبلا ثبت شده لطفا اطلاعات فیش را بررسی نمایید .";
                        return(Result);
                    }
                    BI.UpdateReceipt(_Receipt, RceiptID, DateAndTime.GetDate10Digit_latin(), DateAndTime.GetTime8Digit(), DateAndTime.GetDate10Digit());
                    BI.UpdateReceiptidInParcelList(SelectedID, DontSelectedID, RceiptID, DateAndTime.GetSQLDateTimeDigitMiladi(), DateAndTime.GetSQLDate10DigitShamsi());
                    Result = "";
                }
                else
                {
                    Result = "مبلغ فیش از مبالغ مرسولات کمتر است .";
                }
            }
            catch { Result = "مشکل در بروز رسانی اطلاعات."; }
            return(Result);
        }
Exemplo n.º 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     faDate.Attributes.Add("onclick", "displayDatePicker('" + faDate.UniqueID + "');");
     this.faDate.Value = DateAndTime.GetDate10Digit();
 }
Exemplo n.º 15
0
 private void SendToFinancial(string RefID)
 {
     BI.SentToFinanceByRefID(RefID, DateAndTime.GetDate10Digit());
 }
Exemplo n.º 16
0
        public bool ItemCommand(DataGridCommandEventArgs e)
        {
            bool Result = false;

            CreateReceiptObject(e);
            switch (e.CommandName)
            {
            case "OK":
                string       flag            = "";
                DropDownList list            = (DropDownList)e.Item.FindControl("ddlReceiptState");
                TextBox      txtDescriptions = (TextBox)e.Item.FindControl("txtDescription");
                if (Convert.ToInt32(list.SelectedValue) == 1)
                {
                    flag = "C";
                }
                else
                {
                    flag = "D";
                }
                finData.UpdateReceiptInfoByFinancialUser(receipt, flag, list.SelectedValue, txtDescriptions.Text, DateAndTime.GetDate10Digit());
                ShowMessage("");
                Result = true;
                break;

            //case "NOK":
            //    if (DontEmptyDescription(e))
            //    {
            //        finData.UpdateReceiptInfoByFinancialUser(receipt, "D");
            //        ShowMessage("");
            //        Result = true;
            //    }
            //    else
            //        ShowMessage("قبل از زدن عدم تایید باید فیلد توضیحات را وارد نمایید");
            //    break;
            case "Detail":
                EnableDetail(receipt.ID);
                break;

            case "ParcelsDetail":
                EnableParcelsDetail(receipt.ID);
                break;
            }
            return(Result);
            //  Load_MyGrid();
        }