Example #1
0
        private void GetDetailsById(int indentId)
        {
            purchaseData = new PurchaseData();
            DS           = new DataSet();
            indent       = new Indent();
            string result = string.Empty;

            indent.IndentId = indentId;
            indent.Flag     = 3; //for getting Order Details
            DS = purchaseData.GetIndentList(indent);
            if (!Comman.Comman.IsDataSetEmpty(DS))
            {
                if (DS.Tables[0].Rows[0]["Delivered"].ToString() == "True")
                {
                    dpStatus.Enabled = false;
                }

                rpModal.DataSource = DS;
                rpModal.DataBind();

                btnUpdate.Visible = true;
                btnSubmit.Visible = false;
                upModal.Update();
            }
        }
Example #2
0
        protected void btnViewIndents_Click(object sender, EventArgs e)
        {
            purchaseData = new PurchaseData();
            DS           = new DataSet();

            int flag = 1; //for getting new indents

            DS = purchaseData.GetIndentList(flag);
            rpIndentList.DataSource = DS;
            rpIndentList.DataBind();
            lblBoxHeader.Text = "New Indent List";
            upMain.Update();
        }
Example #3
0
 protected void btnSearch_Click(object sender, EventArgs e)
 {
     purchaseData             = new PurchaseData();
     DS                       = new DataSet();
     indent                   = new Indent();
     indent.IndentDate1       = string.IsNullOrEmpty(txtIndDate.Text) ? string.Empty : Convert.ToDateTime(txtIndDate.Text).ToString("dd-MM-yyyy");
     indent.Flag              = 2; //for getting Approved Request Details by Date
     DS                       = purchaseData.GetIndentList(indent);
     rpRequestList.DataSource = DS;
     rpRequestList.DataBind();
     //lblBoxHeader.Text = "New Request List";
     upList.Update();
 }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                purchaseData = new PurchaseData();
                DS           = new DataSet();

                int flag = 1; //for getting new indents
                DS = purchaseData.GetIndentList(flag);
                rpIndentList.DataSource = DS;
                rpIndentList.DataBind();
                //.Text = DateTime.Now.ToString();
                upMain.Update();
            }
            //lblBoxHeader.Text = "xx";
        }